diff --git a/ptbposter/ptbposter-inc.tex b/ptbposter/ptbposter-inc.tex index 17f3c40b00ebc12bdbfe9317fc61131544bfdaf4..4652a6cdbc515748cff6c4753ff38082315a54b3 100644 --- a/ptbposter/ptbposter-inc.tex +++ b/ptbposter/ptbposter-inc.tex @@ -8,7 +8,7 @@ Vorgaben der PTB entsprechend qualitativ hochwertig zu setzen. \section{Klassenoptionen} -\begin{itemize} +\begin{itemize} %\makeatletter\showthe\parskip %%% \showthe\itemsep \item \textbf{portrait}: Setzt das Poster im Hochformat (Standard). \item \textbf{landscape}: Setzt das Poster im Querformat. \item \textbf{serif}: Wählt die Serifenschrift für den Textbereich (Standard). @@ -35,6 +35,7 @@ Derzeit wird ausschließlich das Papierformat "`A0"' sowie die Eingabe-Kodierung um den angegebenen Wert. Beispiel: Mit \verb|\scaleTitleFontSize{0.97}| wird der Titel um 3\,\% verkleinert gesetzt. \end{itemize} + Beide Zahlenwerte sollten nahe bei "`1"' liegen, um das Gesamtbild nicht zu beeinträchtigen. Die Makros \verb|\phone|, \verb|\fax|, \verb|\email|, \verb|\workingGroup|, \verb|\department|, \verb|\location|, \verb|\street| und @@ -43,15 +44,17 @@ beeinträchtigen. Die Makros \verb|\phone|, \verb|\fax|, \verb|\email|, \section{Angaben zu Autoren} \subsection{Ein Autor} + Nur eine einzelne Angabe wie \verb|\Author{Max}{Müller}|. \subsection{Mehrere Autoren} \begingroup \footnotesize +{} \begin{verbatim} \Author{Rolf}{Niepraschk}[Physikalisch-Technische ...] \Author*{Max}{Mustermann} -\Author{Ellen}{Bogen}[Muster Universität Forschungsstadt] +\Author{Ellen}{Bogen}[Muster Universität Oberstadt] \Author*{Peter}{Silie}[XYZ GmbH] \end{verbatim} \endgroup diff --git a/ptbposter/ptbposter-test-hoch.pdf b/ptbposter/ptbposter-test-hoch.pdf index 7c4b21a5e6c45d121a89c65730ae299662ef11fc..f0d5137847900eb61028a1adf78639b88a4336a7 100644 Binary files a/ptbposter/ptbposter-test-hoch.pdf and b/ptbposter/ptbposter-test-hoch.pdf differ diff --git a/ptbposter/ptbposter-test-hoch.tex b/ptbposter/ptbposter-test-hoch.tex index 4ca7c1eca06a4acda69f4e7d11c97484d3298b83..16791cf648eebfc83c580ecb986e04f723ecaf31 100644 --- a/ptbposter/ptbposter-test-hoch.tex +++ b/ptbposter/ptbposter-test-hoch.tex @@ -1,5 +1,5 @@ -\documentclass{ptbposter} +\documentclass[a0paper]{ptbposter} %\documentclass[english]{ptbposter} \phone{+49-30-3481-7316} diff --git a/ptbposter/ptbposter-test-quer.pdf b/ptbposter/ptbposter-test-quer.pdf index dcc6836fb59bbd133adb6c96ec076b7acf865368..6812c38f5fb425a3a912f7636ee2f83d3cd3c6bf 100644 Binary files a/ptbposter/ptbposter-test-quer.pdf and b/ptbposter/ptbposter-test-quer.pdf differ diff --git a/ptbposter/ptbposter.cls b/ptbposter/ptbposter.cls index 287d2912aa89fb937b49c4f1f2f2f4d003ddebf9..58bd8bcef868f3f581dc467cb1dc8dd26dd43594 100644 --- a/ptbposter/ptbposter.cls +++ b/ptbposter/ptbposter.cls @@ -1,6 +1,6 @@ % Rolf Niepraschk, Rolf.Niepraschk@ptb.de -\setcounter{errorcontextlines}{100} +\setcounter{errorcontextlines}{100} \listfiles \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{ptbposter} @@ -8,16 +8,20 @@ \newdimen\PTB@topmargin % Abstand zum Rahmen \newdimen\PTB@leftmargin % Abstand zum Rahmen +\newdimen\PTB@default@fsize@base % Bezugsgröße für Standardschriftgröße im Textbereich \newdimen\PTB@default@fsize % Standardschriftgröße im Textbereich (\normalsize) \newdimen\PTB@default@tfsize % Standardschriftgröße für den Titel \newdimen\PTB@default@afsize % Standardschriftgröße für die Autoren -\newdimen\PTB@texthsep % Abstand Textbereich zum Rand -\newdimen\PTB@textvsep % Abstand Textbereich zum Rand +\newdimen\PTB@default@ffsize % Standardschriftgröße im Fußbereich +\newdimen\PTB@texthsep % Abstand Textbereich zum blauen Rahmen +\newdimen\PTB@textvsep % Abstand Textbereich zum blauen Rahmen +\newdimen\PTB@framewidth % Breite des blauen Rahmens +\newdimen\PTB@frameheight % Höhe des blauen Rahmens +\newdimen\PTB@scale@basis % Bezugsgröße für papierabhängige Größenberechnung -\setlength\PTB@default@fsize{41pt} -\setlength\PTB@default@afsize{106.6pt} -\setlength\PTB@default@tfsize{106.6pt} -\setlength\PTB@topmargin{215mm} +\newcommand*\authorFontSize{} +\newcommand*\footFontSize{} +\newcommand*\titleFontSize{} \newcommand\PTB@tempa{} \newcommand\PTB@tempb{} @@ -26,13 +30,10 @@ \newcommand\PTB@tempe{} \let\PTB@tempdima=\@ovxx -\let\PTB@tempdimb=\@ovyy{} +\let\PTB@tempdimb=\@ovyy \newif\ifPTB@is@landscape \PTB@is@landscapefalse -\DeclareOption{portrait}{\PTB@is@landscapefalse} -\DeclareOption{landscape}{\PTB@is@landscapetrue} - \DeclareOption{sanserif}{% noch experimentell! Besser: luaTeX/xeTeX + OTF \AtEndOfClass{% \renewcommand\familydefault{\sfdefault} @@ -47,8 +48,6 @@ \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} -%%%\PassOptionsToClass{fontsize=\the\PTB@default@fsize}{scrartcl} - \ExecuteOptions{portrait,serif} \ProcessOptions\relax @@ -59,7 +58,7 @@ \HyphSubstLet{german}{german-x-latest}}{} \RequirePackage{etoolbox} -\preto\@classoptionslist{ngerman,} +\preto\@classoptionslist{a0paper,portrait,ngerman,} % Ohne Sprachangabe "deutsch" verwenden. Bessere Lösung? % TODO: Auf OTF-Fonts wechseln (XeLaTeX / LuaLaTeX) @@ -69,14 +68,42 @@ \RequirePackage{tgheros} \LoadClass[% -,parskip=half +%,parskip=half +%,fontsize=41pt ]{scrartcl} +% "fontsize=41pt" verhindert das Laden von "scrsize11pt.clo" o.ä. + +\RequirePackage{geometry}% Papiergröße steht fest (Standard: A0) + +\ifdim\paperheight>\paperwidth + \setlength\PTB@scale@basis{\paperheight} + \PTB@is@landscapefalse +\else + \setlength\PTB@scale@basis{\paperwidth} + \PTB@is@landscapetrue +\fi + +\setlength\PTB@default@fsize@base{0.0130170299199\PTB@scale@basis}% 11pt bei A4 +\setlength\PTB@default@afsize{0.0157550946737\PTB@scale@basis}% 53.3pt bei A0 +\setlength\PTB@default@tfsize{0.0315101893474\PTB@scale@basis}% 106.6pt bei A0 +\setlength\PTB@default@ffsize{0.00567538119577\PTB@scale@basis}% 19.2pt bei A0 +\setlength\PTB@topmargin{0.180824222418\PTB@scale@basis}% 612pt (215mm) bei A0 \newcommand*\scaleFontSizes[1]{% - \PTB@tempdima=\PTB@default@fsize % - \changefontsizes{#1\PTB@tempdima}% + \PTB@default@fsize=#1\PTB@default@fsize@base + %%%\changefontsizes{\PTB@default@fsize}% ??? } -\scaleFontSizes{1}% + +\newcommand*\scaleTitleFontSize[1]{% + \PTB@tempdima=\PTB@default@tfsize + \PTB@tempdima=#1\PTB@tempdima + \PTB@tempdimb=1.2\PTB@tempdima + \xdef\titleFontSize{\noexpand\@setfontsize + \noexpand\titleFontSize{\the\PTB@tempdima}{\the\PTB@tempdimb}}% +} + +\scaleFontSizes{1}% wird ggf. in Präambel noch mal angepasst +\scaleTitleFontSize{1}% wird ggf. in Präambel noch mal angepasst \RequirePackage[svgnames]{xcolor} \RequirePackage[newcommands,newparameters]{ragged2e}% ??? @@ -137,13 +164,19 @@ \RequirePackage{qrcode} \AddToShipoutPictureBG*{% Kopf (relativ zur oberen Blattkante) - \put(\PTB@leftmargin,-95.4mm){\includegraphics[width=477mm]{ptbposter-logo.pdf}}% - \put(\PTB@leftmargin,-160mm){\sffamily\titleFontSize\@title}% + \PTB@tempdima=-0.08023549218\PTB@scale@basis + \put(\PTB@leftmargin,\PTB@tempdima){% + \includegraphics[width=.401\PTB@scale@basis]{ptbposter-logo.pdf}}% + \PTB@tempdima=-0.134566863195\PTB@scale@basis + \put(\PTB@leftmargin,\PTB@tempdima){\sffamily\titleFontSize\@title}% + \PTB@tempdima=-0.159798150044\PTB@scale@basis \def\and{, }% - \put(\PTB@leftmargin,-190mm){\sffamily\authorFontSize\@author}% + \put(\PTB@leftmargin,\PTB@tempdima){\sffamily\authorFontSize\@author}% % hier wird \@thanks gefüllt - \linethickness{2mm}\color{PTBcolor} - \put(\PTB@leftmargin,-105mm){% + \PTB@tempdima=0.00168208578994\PTB@scale@basis + \linethickness{\PTB@tempdima}\color{PTBcolor} + \PTB@tempdima=-0.0883095039717\PTB@scale@basis + \put(\PTB@leftmargin,\PTB@tempdima){% \line(1,0){\dimexpr\paperwidth-2\PTB@leftmargin}}% \put(\PTB@leftmargin,\dimexpr-\textheight-2\PTB@textvsep-\PTB@topmargin)% {\framebox(\dimexpr\textwidth+2\PTB@texthsep,% @@ -153,20 +186,28 @@ \AddToShipoutPictureBG*{% Fuß (relativ zur unteren Kante des Textbereichs) \AtTextLowerLeft{% \put(-\PTB@texthsep,-\PTB@textvsep){% - \linethickness{.5mm}\normalcolor - \put(-.5\@wholewidth,-50mm){% + \PTB@tempdimb=0.000420521447484\PTB@scale@basis + \linethickness{\PTB@tempdimb}\normalcolor + \PTB@tempdima=-0.0420521447484\PTB@scale@basis + \put(-.5\@wholewidth,\PTB@tempdima){% + \PTB@tempdima=0.0386879731686\PTB@scale@basis + \PTB@tempdimb=0.00168208578994\PTB@scale@basis \ifx\PTB@qrcode\@empty - \color{PTBcolor}\framebox(46mm,46mm){}% + \color{PTBcolor}\framebox(\PTB@tempdima,\PTB@tempdima){}% \else - \raisebox{19mm}{\qrcode[height=46mm,tight]{\PTB@qrcode}}% + \raisebox{0.71\height}{% + \qrcode[height=\PTB@tempdima,tight]{\PTB@qrcode}}% \fi \color{PTBcolor} - \hspace{2mm}\raisebox{-.5mm}{\rule{47mm}{47mm}}% - \hspace{2mm}\framebox(46mm,46mm){}% + \hspace{\PTB@tempdimb}\raisebox{-\@wholewidth}{% + \rule{\dimexpr\PTB@tempdima+2\@wholewidth}% + {\dimexpr\PTB@tempdima+2\@wholewidth}}% + \hspace{\PTB@tempdimb}\framebox(\PTB@tempdima,\PTB@tempdima){}% } - \setlength\PTB@tempdima{-10mm}% + \PTB@tempdimb=-0.00841042894969\PTB@scale@basis \footFontSize\sffamily\normalcolor - \put(146mm,\PTB@tempdima){% + \PTB@tempdima=0.122792262665\PTB@scale@basis + \put(\PTB@tempdima,\PTB@tempdimb){% \begin{tabular}[t]{@{}l@{}} Physikalisch-Technische Bundesanstalt \\ Braunschweig und Berlin \\[\f@baselineskip] @@ -175,7 +216,8 @@ \ifx\PTB@workingGroup\@empty\else \PTB@workingGroup\\\fi \end{tabular}% } - \put(313mm,\PTB@tempdima){% + \PTB@tempdima=0.263246426125\PTB@scale@basis + \put(\PTB@tempdima,\PTB@tempdimb){% \begin{tabular}[t]{@{}ll@{}} \ifx\PTB@street\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@street}\\\fi \ifx\PTB@location\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@location}\\\fi @@ -185,7 +227,8 @@ \multicolumn{2}{@{}l@{}}{\href{http://www.ptb.de/}{www.ptb.de}} \end{tabular}% } - \put(450mm,\PTB@tempdima){% + \PTB@tempdima=0.378469302736\PTB@scale@basis + \put(\PTB@tempdima,\PTB@tempdimb){% \begin{tabular}[t]{@{}l@{}} \@thanks % wurde bei der Ausführung von \@author gefüllt. \end{tabular}% @@ -277,62 +320,48 @@ \endgroup }% -\newcommand*\authorFontSize{} -\newcommand*\footFontSize{} -\newcommand*\titleFontSize{} -\def\authorFontSize{\@setfontsize\authorFontSize{53.3}{63.96}} -\def\footFontSize{\@setfontsize\footFontSize{19.2}{23.04}} - -\newcommand*\scaleTitleFontSize[1]{% - \PTB@tempdima=\PTB@default@tfsize - \PTB@tempdima=#1\PTB@tempdima - \PTB@tempdimb=1.2\PTB@tempdima - \xdef\titleFontSize{\noexpand\@setfontsize - \noexpand\titleFontSize{\the\PTB@tempdima}{\the\PTB@tempdimb}}% -} - -\scaleTitleFontSize{1} - \renewcommand*\labelitemi{$\m@th\circ$} \renewcommand*\labelitemii{$\m@th\triangleright$} \renewcommand*\labelitemiii{$\m@th\diamond$} %\renewcommand*\labelitemiv{\makebox[.5em]{\scalebox{1.5}{\textbullet}}}% \renewcommand*\labelitemiv{\textbullet}% -\setlength\leftmargini{1.5em} -\setlength\leftmarginii{1.4em} -\setlength\leftmarginiii{1.3em} -\setlength\leftmarginiv{1.2em} - -\renewcommand\section{\@startsection{section}{1}{\z@}% - {-1.5ex \@plus -.5ex \@minus -.2ex}% - {.8ex \@plus .2ex}% - {\raggedsection\normalfont\sectfont\size@section}% -} \AtBeginDocument{% % Skalierungen in der Präambel sind passiert. - \RequirePackage[paper=a0paper,columnsep=2em]{geometry}% + %%%\makeatletter\input{ptbposter-size.clo}\makeatother{} + \changefontsizes{\the\PTB@default@fsize}% \setlength\PTB@texthsep{.5em}% \setlength\PTB@textvsep{.75em}% + \edef\authorFontSize{\noexpand\@setfontsize\noexpand\authorFontSize{% + \the\PTB@default@afsize}{\the\dimexpr1.2\PTB@default@afsize}} + \edef\footFontSize{\noexpand\@setfontsize\noexpand\footFontSize{% + \the\PTB@default@ffsize}{\the\dimexpr1.2\PTB@default@ffsize}} \ifPTB@is@landscape - \setlength\PTB@leftmargin{0.5\dimexpr\paperwidth-1130mm}% + \setlength\PTB@framewidth{0.950378471315\PTB@scale@basis}% 3215pt (1130mm) bei A0 + \setlength\PTB@frameheight{0.462573592233\PTB@scale@basis}% 1565pt (550mm) bei A0 \else - \setlength\PTB@leftmargin{0.5\dimexpr\paperwidth-780mm}% + \setlength\PTB@framewidth{0.656013458076\PTB@scale@basis}% 2219pt (780mm) bei A0 + \setlength\PTB@frameheight{0.740117747573\PTB@scale@basis}% 2504pt (880mm) bei A0 \fi + \setlength\PTB@leftmargin{0.5\dimexpr\paperwidth-\PTB@framewidth}% \edef\PTB@tempa{\noexpand\newgeometry{% - top=\the\dimexpr\PTB@topmargin+\PTB@textvsep,% - \ifPTB@is@landscape - landscape,% - textwidth=\the\dimexpr1130mm-2\PTB@texthsep,% - textheight=\the\dimexpr550mm-2\PTB@textvsep,hcentering% - \else - portrait,% - textwidth=\the\dimexpr780mm-2\PTB@texthsep,% - textheight=\the\dimexpr880mm-2\PTB@textvsep,hcentering% - \fi + columnsep=2em,hcentering,% + top=\the\dimexpr\PTB@topmargin+\PTB@textvsep,% + textwidth=\the\dimexpr\PTB@framewidth-2\PTB@texthsep,% + textheight=\the\dimexpr\PTB@frameheight-2\PTB@texthsep }% }% \PTB@tempa + \normalsize \KOMAoptions{parskip=half} + \setlength\leftmargini{1.5em} + \setlength\leftmarginii{1.4em} + \setlength\leftmarginiii{1.3em} + \setlength\leftmarginiv{1.2em} + \renewcommand\section{\@startsection{section}{1}{\z@}% + {-1.5ex \@plus -.5ex \@minus -.2ex}% + {.8ex \@plus .2ex}% + {\raggedsection\normalfont\sectfont\size@section}% + } } \setcounter{secnumdepth}{-2}