diff --git a/ptbposter/ptbposter-2018.clo b/ptbposter/ptbposter-2018.clo index a1e589976be8b58558cbb6ee71208a69769bff0b..f4009085195da644e6878b710c2da25d82a17150 100644 --- a/ptbposter/ptbposter-2018.clo +++ b/ptbposter/ptbposter-2018.clo @@ -1,10 +1,15 @@ % Rolf Niepraschk, Rolf.Niepraschk@ptb.de \ProvidesFile{ptbposter-2018.clo}% - [2020/03/09 v0.1b `PTB-Poster' layout 2018 (RN/PTB)] + [2020/03/10 v0.1b `PTB-Poster' layout 2018 (RN/PTB)] \typeout{*** LAYOUT 2018 ***} +\setlength\PTB@default@fontsize@base{0.0130170299199\PTB@scale@base}% 11pt bei A4 +\setlength\PTB@default@author@fontsize{0.0157550946737\PTB@scale@base}% 53.3pt bei A0 +\setlength\PTB@default@title@fontsize@base{0.0315101893474\PTB@scale@base}% 106.6pt bei A0 +\setlength\PTB@default@foot@fontsize{0.00567538119577\PTB@scale@base}% 19.2pt bei A0 + \ifPTB@XeOrLua \setfontfamily\PTBdesignFont{texgyreheros}[ Ligatures=TeX, diff --git a/ptbposter/ptbposter-2020.clo b/ptbposter/ptbposter-2020.clo index 01fd4f22a41f54c65f716323c948c70f1f3d5c71..63d5d422154617c3020f16ea530f0b2c5c5155f2 100644 --- a/ptbposter/ptbposter-2020.clo +++ b/ptbposter/ptbposter-2020.clo @@ -1,13 +1,17 @@ % Rolf Niepraschk, Rolf.Niepraschk@ptb.de \ProvidesFile{ptbposter-2020.clo}% - [2020/03/09 v0.1b `PTB-Poster' layout 2020 (RN/PTB)] + [2020/03/10 v0.1b `PTB-Poster' layout 2020 (RN/PTB)] \typeout{*** LAYOUT 2020 ***} +\setlength\PTB@default@fontsize@base{0.0118336635635\PTB@scale@base}% 10pt bei A4 +\setlength\PTB@default@author@fontsize{0.0157550946737\PTB@scale@base}% 53.3pt bei A0 +\setlength\PTB@default@title@fontsize@base{.03147352426532526036\PTB@scale@base}% 106.6pt bei A0 ??? +\setlength\PTB@default@foot@fontsize{0.00567538119577\PTB@scale@base}% 19.2pt bei A0 + \ifPTB@XeOrLua \setfontfamily\PTBdesignFont{UniversNextPro-Light}[% - Scale=.905,% ??? BoldFont=*, Extension=.ttf] \setsansfont{texgyreheros}[ diff --git a/ptbposter/ptbposter.cls b/ptbposter/ptbposter.cls index 41ebe0d2d162686596a65485a39cf2a1ea02785e..4c6b81345f371e2824430bd2d399adef4beb43cd 100644 --- a/ptbposter/ptbposter.cls +++ b/ptbposter/ptbposter.cls @@ -10,12 +10,12 @@ \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@tfsize@base % Bezugsgröße für Standardschriftgröße im Titel +\newdimen\PTB@default@fontsize@base % Bezugsgröße für Standardschriftgröße im Textbereich +\newdimen\PTB@default@title@fontsize@base % Bezugsgröße für Standardschriftgröße im Titel \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@default@ffsize % Standardschriftgröße im Fußbereich +\newdimen\PTB@default@title@fontsize % Standardschriftgröße für den Titel +\newdimen\PTB@default@author@fontsize % Standardschriftgröße für die Autoren +\newdimen\PTB@default@foot@fontsize % 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 @@ -58,7 +58,6 @@ \newcommand*\PTB@authors@justification{\relax} \newcommand*\PTB@title@series{\relax} -\newcommand*\PTB@font@base@factor{} \newcommand*\PTB@layout{} \DeclareOption{sanserif}{% noch experimentell! Besser: LuaTeX/XeTeX + OTF @@ -101,11 +100,11 @@ \PTB@logo@long@false } \DeclareOption{layout2018}{% - \def\PTB@font@base@factor{0.0130170299199}% 11pt bei A4 + %\def\PTB@font@base@factor{0.0130170299199}% 11pt bei A4 \def\PTB@layout{0}% } \DeclareOption{layout2020}{% - \def\PTB@font@base@factor{0.0118336635635}% 10pt bei A4 + %\def\PTB@font@base@factor{0.0118336635635}% 10pt bei A4 \def\PTB@layout{1}% } \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{babel}} @@ -142,55 +141,6 @@ \input{ptbposter-old-engines.clo} \fi -\ifdim\paperheight>\paperwidth - \setlength\PTB@scale@base{\paperheight} - \PTBlandscapefalse -\else - \setlength\PTB@scale@base{\paperwidth} - \PTBlandscapetrue -\fi - -\setlength\PTB@default@fsize@base{\PTB@font@base@factor\PTB@scale@base}% 10pt/11pt bei A4 -\setlength\PTB@default@afsize{0.0157550946737\PTB@scale@base}% 53.3pt bei A0 -\setlength\PTB@default@tfsize@base{0.0315101893474\PTB@scale@base}% 106.6pt bei A0 -\setlength\PTB@default@ffsize{0.00567538119577\PTB@scale@base}% 19.2pt bei A0 - -\newcommand*\scaleFontSizes[1]{% - \global\PTB@default@fsize=#1\PTB@default@fsize@base -} -\@onlypreamble\scaleFontSizes -\newcommand*\scaleTitleFontSize[1]{% - \global\PTB@default@tfsize=#1\PTB@default@tfsize@base -} -\@onlypreamble\scaleTitleFontSize - -\setlength\PTB@default@tfsize{0.0315101893474\PTB@scale@base}% 106.6pt bei A0 - -\newcommand*\PTB@scaleTitleFontSize[1]{% - \PTB@tempdima=\PTB@default@tfsize - \PTB@tempdima=#1\PTB@tempdima - \PTB@tempdimb=1.14\PTB@tempdima - \xdef\titleFontSize{\noexpand\@setfontsize - \noexpand\titleFontSize{\the\PTB@tempdima}{\the\PTB@tempdimb}}% -} - -\scaleFontSizes{1}% wird ggf. in Präambel noch mal geändert. -\scaleTitleFontSize{1}% wird ggf. in Präambel noch mal geändert. - -\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}} - -\newcommand*\scaleFont[1]{% - \PTB@tempdima=\f@size pt \PTB@tempdima=#1\PTB@tempdima - \PTB@tempdimb=\f@baselineskip \PTB@tempdimb=#1\PTB@tempdimb - \edef\f@size{\strip@pt\PTB@tempdima}% - \edef\f@baselineskip{\the\PTB@tempdimb}% - \fontsize{\f@size}{\f@baselineskip}% - \selectfont -} - \RequirePackage[dvipsnames,svgnames,x11names]{xcolor} \RequirePackage{multicol,graphicx} @@ -361,6 +311,47 @@ %\renewcommand*\labelitemii{$\m@th\diamond$} %\renewcommand*\labelitemii{$\m@th\triangleright$}% +\ifdim\paperheight>\paperwidth + \setlength\PTB@scale@base{\paperheight} + \PTBlandscapefalse +\else + \setlength\PTB@scale@base{\paperwidth} + \PTBlandscapetrue +\fi + +\newcommand*\scaleFontSizes[1]{% + \global\PTB@default@fsize=#1\PTB@default@fontsize@base +} +\@onlypreamble\scaleFontSizes +\newcommand*\scaleTitleFontSize[1]{% + \global\PTB@default@title@fontsize=#1\PTB@default@title@fontsize@base +} +\@onlypreamble\scaleTitleFontSize + +\setlength\PTB@default@title@fontsize{0.0315101893474\PTB@scale@base}% 106.6pt bei A0 + +\newcommand*\PTB@scaleTitleFontSize[1]{% + \PTB@tempdima=\PTB@default@title@fontsize + \PTB@tempdima=#1\PTB@tempdima + \PTB@tempdimb=1.14\PTB@tempdima + \xdef\titleFontSize{\noexpand\@setfontsize + \noexpand\titleFontSize{\the\PTB@tempdima}{\the\PTB@tempdimb}}% +} + +\def\authorFontSize{\@setfontsize\authorFontSize{% + \PTB@default@author@fontsize}{1.2\PTB@default@author@fontsize}} +\def\footFontSize{\@setfontsize\footFontSize{% + \PTB@default@foot@fontsize}{1.2\PTB@default@foot@fontsize}} + +\newcommand*\scaleFont[1]{% + \PTB@tempdima=\f@size pt \PTB@tempdima=#1\PTB@tempdima + \PTB@tempdimb=\f@baselineskip \PTB@tempdimb=#1\PTB@tempdimb + \edef\f@size{\strip@pt\PTB@tempdima}% + \edef\f@baselineskip{\the\PTB@tempdimb}% + \fontsize{\f@size}{\f@baselineskip}% + \selectfont +} + \ifcase \PTB@layout % 0 \input{ptbposter-2018.clo} @@ -368,6 +359,9 @@ \input{ptbposter-2020.clo} \fi +\scaleFontSizes{1}% wird ggf. in Präambel noch mal geändert. +\scaleTitleFontSize{1}% wird ggf. in Präambel noch mal geändert. + \AtEndPreamble{% % Skalierungen in der Präambel sind passiert. \changefontsizes{\the\PTB@default@fsize}%