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

Makros "centerTitel", "boldTitel" neu, "scaleTitleFontSize" weg.

parent 567d967b
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -33,6 +33,8 @@ Anleitung.}
\section{Makros}
\begin{itemize}
\item \verb|\centerTitel|: Den Titel zentrieren.
\item \verb|\boldTitel|: Im Titel fette Schriftstärke verwenden.
\item \verb|\scaleFontSizes|: Skaliert alle Schriftgrößen im Textbereich um
den angegebenen Wert. Beispiel: Mit \verb|\scaleFontSizes{1.04}| wird der
Fließtext um 4\,\% vergrößert gesetzt.
......
......@@ -4,7 +4,7 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptbposter}
[2017/10/24 v0.6a PTB-Poster-Klasse (RN)]
[2017/10/27 v0.6b PTB-Poster-Klasse (RN)]
\newif\ifPTB@useCMYK \PTB@useCMYKfalse % vorerst
......@@ -156,7 +156,12 @@
\global\PTB@default@fsize=#1\PTB@default@fsize@base
}
\newcommand*\scaleTitleFontSize[1]{%
\newcommand*\PTB@title@justification{\relax}
\newcommand*\centerTitel{\global\let\PTB@title@justification=\centering}
\newcommand*\PTB@title@series{\relax}
\newcommand*\boldTitel{\global\let\PTB@title@series=\bfseries}
\newcommand*\PTB@scaleTitleFontSize[1]{%
\PTB@tempdima=\PTB@default@tfsize
\PTB@tempdima=#1\PTB@tempdima
\PTB@tempdimb=1.14\PTB@tempdima
......@@ -165,7 +170,6 @@
}
\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}}
......@@ -259,15 +263,16 @@
}%
}%
}%
\def\PTB@tempa{\parbox[c]{\PTB@framewidth}{% Komplette Titeldefinition
\PTB@title@justification\PTB@title@series\sffamily\titleFontSize
\microtypesetup{protrusion=false}\@title}}%
\begingroup
\@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, ...
\PTB@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}{%
\microtypesetup{protrusion=false}\sffamily\titleFontSize\@title}}%
\setbox\z@ \hbox{\PTB@tempa}%
\ifdim\dimexpr\ht\z@+\dp\z@>\PTB@maxtitleheight
\advance\@tempcnta\@ne % weiter, wenn zu gross
\else
......@@ -276,13 +281,10 @@
\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}%
}%
\put(\PTB@leftmargin,\PTB@tempdima){\PTB@tempa}% Titel
\PTB@tempdima=-0.172\PTB@scale@base
\def\and{, }%
\put(\PTB@leftmargin,\PTB@tempdima){\parbox[b]{\PTB@framewidth}{%
\put(\PTB@leftmargin,\PTB@tempdima){\parbox[b]{\PTB@framewidth}{% Autoren
\sffamily\authorFontSize\@author}}%
% hier wird \@thanks gefüllt
\PTB@tempdima=0.00168208578994\PTB@scale@base
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment