Skip to content
Snippets Groups Projects
Commit 09689ebc authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

Behandlung von mehreren Autoren

parent 72f580f6
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
\documentclass[english,sanserif]{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}
......
......@@ -4,7 +4,7 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptbposter}
[2015/03/18 v0.2b PTB-Poster-Klasse (RN)]
[2015/03/18 v0.2c PTB-Poster-Klasse (RN)]
\PassOptionsToPackage{paper=a0paper}{geometry}
......@@ -43,12 +43,19 @@
%\AtBeginDocument{\renewcommand\familydefault{\rmdefault}}
}
\PassOptionsToClass{fontsize=\the\PTB@default@fsize}{scrartcl}
\newcommand*\scaleFontSizes[1]{%
\@ovri=\PTB@default@fsize %
\changefontsizes{#1\@ovri}%
}
%%%\PassOptionsToClass{fontsize=\the\PTB@default@fsize}{scrartcl}
\ExecuteOptions{portrait,ngerman,serif}
\ProcessOptions\relax
\LoadClass{scrartcl}
\scaleFontSizes{1}% Werte nahe 1 sind empfohlen.
\RequirePackage[columnsep=2.5em]{geometry}
\RequirePackage[svgnames]{xcolor}
......@@ -102,15 +109,19 @@
\newcommand*\PTB@fax{}
\newcommand*\fax[1]{\gdef\PTB@fax{#1}}
\newcommand*\first@author{}
\definecolor{PTBcolor}{rgb}{0,0.67451,0.87451}
\RequirePackage[texcoord]{eso-pic}
\RequirePackage{pict2e,picture,ifdraft,qrcode,booktabs}
\AddToShipoutPictureBG{% === Kopf ===
\AddToShipoutPictureBG*{% === Kopf ===
\put(\PTB@leftmargin,-95.4mm){\includegraphics[width=477mm]{ptbposter-logo.pdf}}%
\put(\PTB@leftmargin,-160mm){\sffamily\titleFontSize\@title}%
\def\and{, }%
\put(\PTB@leftmargin,-190mm){\sffamily\authorFontSize\@author}%
% hier wird auch \@thanks gefüllt
\put(\PTB@leftmargin,-105mm){%
\linethickness{2mm}\color{PTBcolor}\line(1,0){\dimexpr\paperwidth-2\PTB@leftmargin}}
\linethickness{2mm}
......@@ -121,7 +132,7 @@
}%
}
\AddToShipoutPictureBG{% === Fuß ===
\AddToShipoutPictureBG*{% === Fuß ===
\AtTextLowerLeft{%
\linethickness{.5mm}%
\put(-.5\@wholewidth-\PTB@textsep,-57mm){%
......@@ -135,7 +146,7 @@
\footFontSize\sffamily
Physikalisch-Technische Bundesanstalt \\
Braunschweig und Berlin \par\vspace{1em}
\textbf{\@author} \\
\textbf{\first@author} \\
\PTB@department \\
\PTB@workingGroup
%\rule{\linewidth}{5mm}%
......@@ -154,15 +165,94 @@
}}}%
\hspace{12mm}\raisebox{40.5mm}{{\parbox[t][47mm]{175mm}{%
\footFontSize\sffamily
% TODO: Siehe Lösung für abstracts
%%%$^{1}$Physikalisch-Technische Bundesanstalt \\
%%%$^{2}$Muster Universität Forschungsstadt
%\rule{\linewidth}{5mm}%
\@thanks % wurde bei der Ausführung von \@autor gefüllt.
}}}%
}
}
}
% ===== Behandlung der Autoren (siehe ptb-abstracts.sty ) =====
\def\@author{}
\newcommand\PTB@address{}
\renewcommand\footnotetext[2][]{%
\textsuperscript{#1}#2\\
}
\newcommand\PTB@dec@footnotemark[1][]{%
\addtocounter{footnote}{-1}%
\begingroup
\edef\@tempa{#1}%
\ifx\@tempa\@empty\footnotemark\else\footnotemark[#1]\fi
\endgroup
}
\newcommand\PTB@fnmark[1]{%
\begingroup
\unrestored@protected@xdef\@thefnmark{#1}%
\endgroup
%\show\@thefnmark
\@footnotemark}
\newcommand\Author{%
\begingroup
\@ifstar{\@tempswatrue\@Author}{\@tempswafalse\@Author}}
\newcommand\@Author[2][]{% \@tempa=[footnotemark],\@tempb={Firstname}
\def\@tempa{#1}\def\@tempb{#2}%
\@@Author}
\newcommand\@@Author[2][]{% \@tempc=[alt. Firstname],\@tempd={Surname}
\def\@tempc{#1}\def\@tempd{#2}%
\@@@Author}
\newcommand\@@@Author[1][]{% \@tempe=[Address]
\def\@tempe{#1}%
\ifx\@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}%
\else
\expandafter\g@addto@macro\expandafter\@author
\expandafter{\expandafter\and\@tempb~}%
\expandafter\g@addto@macro\expandafter\@author
\expandafter{\@tempd}% I like it ;-(
\fi
\fi
\if@tempswa
% --> \Author*
\g@addto@macro\@author{\PTB@dec@footnotemark}%
\fi
\ifx\@tempa\@empty\else
\expandafter\g@addto@macro\expandafter\@author
\expandafter{\expandafter\PTB@fnmark\expandafter{\@tempa}}%
\fi
\ifx\@tempe\@empty\else
\if@tempswa
\g@addto@macro\@author{\PTB@fnmark{,}}%
\fi
\expandafter\g@addto@macro\expandafter\@author
\expandafter{\expandafter\thanks\expandafter{\@tempe}}%
\fi
\endgroup
}
\let\PTB@thanks\thanks
\renewcommand\thanks[2][]{%
\begingroup
\def\@tempa{#2}%
\ifx\@tempa\@empty
\footnotemark[\value{footnote}]%
\else
\PTB@thanks{#2}%
\fi
\endgroup
}%
\iffalse
%% Werte auf 41pt bezogen
\edef\large{\noexpand\@setfontsize\noexpand\large
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment