From f578b3e29d6e92e3d73eea6634759f2dbffc4930 Mon Sep 17 00:00:00 2001 From: niepra01 <rolf.niepraschk@ptb.de> Date: Tue, 24 Oct 2017 15:41:27 +0200 Subject: [PATCH] =?UTF-8?q?Font-Loop=20feinf=C3=BChliger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ptbposter/ptbposter.cls | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/ptbposter/ptbposter.cls b/ptbposter/ptbposter.cls index 641f1b2..e959e31 100644 --- a/ptbposter/ptbposter.cls +++ b/ptbposter/ptbposter.cls @@ -159,7 +159,7 @@ \newcommand*\scaleTitleFontSize[1]{% \PTB@tempdima=\PTB@default@tfsize \PTB@tempdima=#1\PTB@tempdima - \PTB@tempdimb=1.2\PTB@tempdima + \PTB@tempdimb=1.14\PTB@tempdima \xdef\titleFontSize{\noexpand\@setfontsize \noexpand\titleFontSize{\the\PTB@tempdima}{\the\PTB@tempdimb}}% } @@ -260,24 +260,27 @@ }% }% \begingroup - \@tempcnta=\@ne \@tempcntb=1279 % - \loop\ifnum\@tempcnta<7 % Finden der ersten passenden titleFontSize - \multiply\@tempcntb 10000 \divide\@tempcntb by 12800 % - \scaleTitleFontSize{0.\the\@tempcntb}% 1:0.999, 2:0.78, 3:0.61, ... + \@tempcnta=\@ne \@tempcntb=10499 % + \loop\ifnum\@tempcnta<25 % Finden der ersten passenden titleFontSize + \multiply\@tempcntb 10000 \divide\@tempcntb by 10500 % jeweils um 5% kleiner + \scaleTitleFontSize{0.\the\@tempcntb}% 1:0.9999, 2:0.9522, 3:0.9068, ... + %\typeout{\the\@tempcnta\space XXX: \titleFontSize, 0.\the\@tempcntb}% + %%% \hyphenpenalty=10000 % keine Trennung \setbox\z@ \hbox{\parbox[c]{\PTB@framewidth}{% - \sffamily\titleFontSize\@title}}% + \microtypesetup{protrusion=false}\sffamily\titleFontSize\@title}}% \ifdim\dimexpr\ht\z@+\dp\z@>\PTB@maxtitleheight - \advance\@tempcnta\@ne % zu gross; weiter + \advance\@tempcnta\@ne % weiter, wenn zu gross \else - \@tempcnta=99 % Abbruch + \@tempcnta=999 % Abbruch \fi \repeat \endgroup \PTB@tempdima=-0.127\PTB@scale@base + %%% \hyphenpenalty=10000 % keine Trennung \put(\PTB@leftmargin,\PTB@tempdima){\parbox[c]{\PTB@framewidth}{% \microtypesetup{protrusion=false}\sffamily\titleFontSize\@title}% }% - \PTB@tempdima=-0.17\PTB@scale@base + \PTB@tempdima=-0.172\PTB@scale@base \def\and{, }% \put(\PTB@leftmargin,\PTB@tempdima){\parbox[b]{\PTB@framewidth}{% \sffamily\authorFontSize\@author}}% @@ -457,7 +460,7 @@ \KOMAoptions{headings=normal,parskip=half} \normalsize \setlength\PTB@texthsep{.75em}% \setlength\PTB@textvsep{.75em}% - \setlength\PTB@maxtitleheight{0.059\PTB@scale@base}% HUGO + \setlength\PTB@maxtitleheight{0.057\PTB@scale@base}% HUGO \ifx\@author\@empty \setlength\PTB@topmargin{0.152\PTB@scale@base}% \else -- GitLab