From 0ddade413563d784f31ccf6ce168ef4514469d91 Mon Sep 17 00:00:00 2001 From: niepra01 <rolf.niepraschk@ptb.de> Date: Wed, 18 Mar 2015 12:21:16 +0100 Subject: [PATCH] =?UTF-8?q?dummy=20f=C3=BCr=20leeren=20QR-Code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ptbposter/ptbposter-test-hoch.tex | 4 +- ptbposter/ptbposter-test-quer.tex | 10 ++++- ptbposter/ptbposter.cls | 73 ++++++++++++++++++------------- 3 files changed, 53 insertions(+), 34 deletions(-) diff --git a/ptbposter/ptbposter-test-hoch.tex b/ptbposter/ptbposter-test-hoch.tex index 648003b..b417e98 100644 --- a/ptbposter/ptbposter-test-hoch.tex +++ b/ptbposter/ptbposter-test-hoch.tex @@ -1,6 +1,6 @@ -\documentclass[english,sanserif]{ptbposter} -%\documentclass[ngerman,sanserif]{ptbposter} +\documentclass[english,draft]{ptbposter} +%\documentclass[ngerman]{ptbposter} \phone{+49-30-3481-7467} \fax{+49-30-3481-7503} diff --git a/ptbposter/ptbposter-test-quer.tex b/ptbposter/ptbposter-test-quer.tex index 27ceba0..9a812b5 100644 --- a/ptbposter/ptbposter-test-quer.tex +++ b/ptbposter/ptbposter-test-quer.tex @@ -1,8 +1,7 @@ -\documentclass[english,landscape,sanserif]{ptbposter} +\documentclass[english,landscape]{ptbposter} %\documentclass[ngerman,sanserif]{ptbposter} -\author{Ute Becker} \phone{+49-30-3481-7467} \fax{+49-30-3481-7503} \email{Ute.Becker@ptb.de} @@ -12,6 +11,13 @@ \street{Abbestraße 2--12} \QRcode{http://www.ptb.de/cms/fachabteilungen/abt7/fb-75/ag-754.html} +\Author{Peter}{Silie}[Physikalisch-Technische Bundesanstalt] +\Author*{Max}{Mustermann} +\Author{Gerhold}{Dosenkohl}[Muster Universität Forschungsstadt] +\Author*{Ellen}{Bogen}[XYZ GmbH] + +%%\scaleFontSizes{1.05} + \title{Das Liebesleben der Maikäfer} \begin{document} diff --git a/ptbposter/ptbposter.cls b/ptbposter/ptbposter.cls index 2be6394..e93870b 100644 --- a/ptbposter/ptbposter.cls +++ b/ptbposter/ptbposter.cls @@ -1,6 +1,6 @@ % Rolf Niepraschk, Rolf.Niepraschk@ptb.de -\errorcontextlines=100 % +\setcounter{errorcontextlines}{100} \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{ptbposter} @@ -16,6 +16,8 @@ \newcommand\PTB@tempa{} \newcommand\PTB@tempb{} \newcommand\PTB@tempc{} +\newcommand\PTB@tempd{} +\newcommand\PTB@tempe{} \DeclareOption{portrait}{% \setlength\PTB@leftmargin{0.5\dimexpr 841mm-780mm} @@ -36,11 +38,16 @@ \PTB@tempa } -\DeclareOption{sanserif}{% TODO! - %\AtBeginDocument{\renewcommand\familydefault{\sfdefault}} +\DeclareOption{sanserif}{% experimentell! Besser: luaTeX/xeTeX + \AtEndOfClass{% + \renewcommand\familydefault{\sfdefault} + \RequirePackage{sfmath} + } } -\DeclareOption{serif}{% TODO! - %\AtBeginDocument{\renewcommand\familydefault{\rmdefault}} +\DeclareOption{serif}{% + \AtEndOfClass{% + \renewcommand\familydefault{\rmdefault} + } } \newcommand*\scaleFontSizes[1]{% @@ -71,7 +78,6 @@ ,babel=true ]{microtype} -% TODO: Optionen serif/sanserif \RequirePackage[T1]{fontenc} \RequirePackage[utf8]{inputenc} \RequirePackage{textcomp} @@ -92,8 +98,8 @@ \iflanguage{german}{\reserved@a}{}% } -\newcommand\PTB@qrcode{} -\newcommand\QRcode[1]{\gdef\PTB@qrcode{#1}} +\newcommand*\PTB@qrcode{} +\newcommand*\QRcode[1]{\gdef\PTB@qrcode{#1}} \newcommand*\PTB@location{38116~Braunschweig} \newcommand*\location[1]{\gdef\PTB@location{#1}} \newcommand*\PTB@street{Bundesallee~100} @@ -114,7 +120,8 @@ \definecolor{PTBcolor}{rgb}{0,0.67451,0.87451} \RequirePackage[texcoord]{eso-pic} -\RequirePackage{pict2e,picture,ifdraft,qrcode,booktabs} +\RequirePackage{pict2e,picture,ifdraft,booktabs} +\RequirePackage{qrcode} \AddToShipoutPictureBG*{% === Kopf === \put(\PTB@leftmargin,-95.4mm){\includegraphics[width=477mm]{ptbposter-logo.pdf}}% @@ -136,11 +143,15 @@ \AtTextLowerLeft{% \linethickness{.5mm}% \put(-.5\@wholewidth-\PTB@textsep,-57mm){% - \raisebox{19mm}{\qrcode[height=47mm,tight]{\PTB@qrcode}}% + \ifx\PTB@qrcode\@empty + \color{PTBcolor}% + \framebox(46mm,46mm){}% + \else + \raisebox{19mm}{\qrcode[height=47mm,tight]{\PTB@qrcode}}% + \fi \color{PTBcolor}% \hspace{2mm}\raisebox{-.5mm}{\rule{47mm}{47mm}}% \hspace{2mm}\framebox(46mm,46mm){}% - %\circle*{1mm}% \color{black}% \hspace{3mm}\raisebox{40.5mm}{{\parbox[t][47mm]{155mm}{% \footFontSize\sffamily @@ -173,6 +184,8 @@ % ===== Behandlung der Autoren (siehe ptb-abstracts.sty ) ===== +\def\author#1{} + \def\@author{} \newcommand\PTB@address{} @@ -183,8 +196,8 @@ \newcommand\PTB@dec@footnotemark[1][]{% \addtocounter{footnote}{-1}% \begingroup - \edef\@tempa{#1}% - \ifx\@tempa\@empty\footnotemark\else\footnotemark[#1]\fi + \edef\PTB@tempa{#1}% + \ifx\PTB@tempa\@empty\footnotemark\else\footnotemark[#1]\fi \endgroup } @@ -199,44 +212,44 @@ \begingroup \@ifstar{\@tempswatrue\@Author}{\@tempswafalse\@Author}} -\newcommand\@Author[2][]{% \@tempa=[footnotemark],\@tempb={Firstname} - \def\@tempa{#1}\def\@tempb{#2}% +\newcommand\@Author[2][]{% \PTB@tempa=[footnotemark],\PTB@tempb={Firstname} + \def\PTB@tempa{#1}\def\PTB@tempb{#2}% \@@Author} -\newcommand\@@Author[2][]{% \@tempc=[alt. Firstname],\@tempd={Surname} - \def\@tempc{#1}\def\@tempd{#2}% +\newcommand\@@Author[2][]{% \PTB@tempc=[alt. Firstname],\PTB@tempd={Surname} + \def\PTB@tempc{#1}\def\PTB@tempd{#2}% \@@@Author} -\newcommand\@@@Author[1][]{% \@tempe=[Address] - \def\@tempe{#1}% - \ifx\@tempd\@empty +\newcommand\@@@Author[1][]{% \PTB@tempe=[Address] + \def\PTB@tempe{#1}% + \ifx\PTB@tempd\@empty % Empty Surname = Addition to the previous author \g@addto@macro\@author{\PTB@fnmark{,}}% \else \ifx\@author\@empty - \xdef\@author{\@tempb~\@tempd}% - \xdef\first@author{\@tempb~\@tempd}% + \xdef\@author{\PTB@tempb~\PTB@tempd}% + \xdef\first@author{\PTB@tempb~\PTB@tempd}% \else \expandafter\g@addto@macro\expandafter\@author - \expandafter{\expandafter\and\@tempb~}% + \expandafter{\expandafter\and\PTB@tempb~}% \expandafter\g@addto@macro\expandafter\@author - \expandafter{\@tempd}% I like it ;-( + \expandafter{\PTB@tempd}% I like it ;-( \fi \fi \if@tempswa % --> \Author* \g@addto@macro\@author{\PTB@dec@footnotemark}% \fi - \ifx\@tempa\@empty\else + \ifx\PTB@tempa\@empty\else \expandafter\g@addto@macro\expandafter\@author - \expandafter{\expandafter\PTB@fnmark\expandafter{\@tempa}}% + \expandafter{\expandafter\PTB@fnmark\expandafter{\PTB@tempa}}% \fi - \ifx\@tempe\@empty\else + \ifx\PTB@tempe\@empty\else \if@tempswa \g@addto@macro\@author{\PTB@fnmark{,}}% \fi \expandafter\g@addto@macro\expandafter\@author - \expandafter{\expandafter\thanks\expandafter{\@tempe}}% + \expandafter{\expandafter\thanks\expandafter{\PTB@tempe}}% \fi \endgroup } @@ -244,8 +257,8 @@ \let\PTB@thanks\thanks \renewcommand\thanks[2][]{% \begingroup - \def\@tempa{#2}% - \ifx\@tempa\@empty + \def\PTB@tempa{#2}% + \ifx\PTB@tempa\@empty \footnotemark[\value{footnote}]% \else \PTB@thanks{#2}% -- GitLab