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

diverse Positionierungsfehler

parent babcadd6
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
...@@ -4,18 +4,18 @@ ...@@ -4,18 +4,18 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptbposter} \ProvidesClass{ptbposter}
[2015/03/19 v0.2e PTB-Poster-Klasse (RN)] [2015/03/20 v0.2f PTB-Poster-Klasse (RN)]
\PassOptionsToPackage{paper=a0paper}{geometry} \newdimen\PTB@topmargin % Abstand zum Rahmen
\newdimen\PTB@leftmargin % Abstand zum Rahmen
\newdimen\PTB@topmargin
\newdimen\PTB@leftmargin
\newdimen\PTB@default@fsize \newdimen\PTB@default@fsize
\newdimen\PTB@textsep \newdimen\PTB@texthsep
\newdimen\PTB@textvsep
\setlength\PTB@default@fsize{41pt} \setlength\PTB@default@fsize{41pt}
\setlength\PTB@topmargin{230mm} \setlength\PTB@topmargin{215mm}
\setlength\PTB@textsep{.5\PTB@default@fsize} \setlength\PTB@texthsep{.5\PTB@default@fsize}
\setlength\PTB@textvsep{.75\PTB@default@fsize}
\newcommand\PTB@tempa{} \newcommand\PTB@tempa{}
\newcommand\PTB@tempb{} \newcommand\PTB@tempb{}
...@@ -24,22 +24,24 @@ ...@@ -24,22 +24,24 @@
\newcommand\PTB@tempe{} \newcommand\PTB@tempe{}
\let\PTB@tempdima=\@ovxx \let\PTB@tempdima=\@ovxx
\let\PTB@tempdimb=\@ovyy \let\PTB@tempdimb=\@ovyy{}
\edef\PTB@tempa{\noexpand\PassOptionsToPackage{paper=a0paper,
top=\the\dimexpr\PTB@topmargin+\PTB@textvsep}{geometry}}
\PTB@tempa
\DeclareOption{portrait}{% \DeclareOption{portrait}{%
\setlength\PTB@leftmargin{0.5\dimexpr 841mm-780mm} \setlength\PTB@leftmargin{0.5\dimexpr 841mm-780mm}
\edef\PTB@tempa{\noexpand\PassOptionsToPackage{portrait, \edef\PTB@tempa{\noexpand\PassOptionsToPackage{portrait,
textwidth=\the\dimexpr780mm-2\PTB@textsep, textwidth=\the\dimexpr780mm-2\PTB@texthsep,
textheight=\the\dimexpr880mm-2\PTB@textsep,hcentering, textheight=\the\dimexpr880mm-2\PTB@textvsep,hcentering}{geometry}}
top=\the\dimexpr\PTB@topmargin-\PTB@textsep}{geometry}}
\PTB@tempa \PTB@tempa
} }
\DeclareOption{landscape}{% \DeclareOption{landscape}{%
\setlength\PTB@leftmargin{0.5\dimexpr 1189mm-1130mm} \setlength\PTB@leftmargin{0.5\dimexpr 1189mm-1130mm}
\edef\PTB@tempa{\noexpand\PassOptionsToPackage{landscape, \edef\PTB@tempa{\noexpand\PassOptionsToPackage{landscape,
textwidth=\the\dimexpr1130mm-2\PTB@textsep, textwidth=\the\dimexpr1130mm-2\PTB@texthsep,
textheight=\the\dimexpr550mm-2\PTB@textsep,hcentering, textheight=\the\dimexpr550mm-2\PTB@textvsep,hcentering}{geometry}}
top=\the\dimexpr\PTB@topmargin-\PTB@textsep}{geometry}}
\PTB@tempa \PTB@tempa
} }
...@@ -154,53 +156,54 @@ ...@@ -154,53 +156,54 @@
\def\and{, }% \def\and{, }%
\put(\PTB@leftmargin,-190mm){\sffamily\authorFontSize\@author}% \put(\PTB@leftmargin,-190mm){\sffamily\authorFontSize\@author}%
% hier wird \@thanks gefüllt % hier wird \@thanks gefüllt
\put(\PTB@leftmargin,-105mm){\linethickness{2mm}\color{PTBcolor}% \linethickness{2mm}\color{PTBcolor}
\line(1,0){\dimexpr\paperwidth-2\PTB@leftmargin}} \put(\PTB@leftmargin,-105mm){%
\linethickness{2mm} \line(1,0){\dimexpr\paperwidth-2\PTB@leftmargin}}%
\AtTextLowerLeft{% \put(\PTB@leftmargin,\dimexpr-\textheight-2\PTB@textvsep-\PTB@topmargin)%
\color{PTBcolor}% {\framebox(\dimexpr\textwidth+2\PTB@texthsep,%
\put(-\PTB@textsep,-\PTB@textsep){\framebox(\dimexpr\textwidth+2\PTB@textsep, \dimexpr\textheight+2\PTB@textvsep){}}%
\dimexpr\textheight+2\PTB@textsep){}}
}%
} }
\AddToShipoutPictureBG*{% Fuß (relativ zur unteren Kante des Textbereichs) \AddToShipoutPictureBG*{% Fuß (relativ zur unteren Kante des Textbereichs)
\AtTextLowerLeft{% \AtTextLowerLeft{%
\linethickness{.5mm}% \put(-\PTB@texthsep,-\PTB@textvsep){%
\put(-.5\@wholewidth-\PTB@textsep,-57mm){% \linethickness{.5mm}\normalcolor
\ifx\PTB@qrcode\@empty \put(-.5\@wholewidth,-50mm){%
\color{PTBcolor}\framebox(46mm,46mm){}% \ifx\PTB@qrcode\@empty
\else \color{PTBcolor}\framebox(46mm,46mm){}%
\raisebox{19mm}{\qrcode[height=47mm,tight]{\PTB@qrcode}}% \else
\fi \raisebox{19mm}{\qrcode[height=47mm,tight]{\PTB@qrcode}}%
\color{PTBcolor} \fi
\hspace{2mm}\raisebox{-.5mm}{\rule{47mm}{47mm}}% \color{PTBcolor}
\hspace{2mm}\framebox(46mm,46mm){}% \hspace{2mm}\raisebox{-.5mm}{\rule{47mm}{47mm}}%
} \hspace{2mm}\framebox(46mm,46mm){}%
\footFontSize\sffamily\color{black}% }
\put(140mm,-17mm){% \setlength\PTB@tempdima{-10mm}%
\begin{tabular}[t]{@{}l@{}} \footFontSize\sffamily\normalcolor
Physikalisch-Technische Bundesanstalt \\ \put(146mm,\PTB@tempdima){%
Braunschweig und Berlin \\[\f@baselineskip] \begin{tabular}[t]{@{}l@{}}
\ifx\first@author\@empty\else \textbf{\first@author}\\\fi Physikalisch-Technische Bundesanstalt \\
\ifx\PTB@department\@empty\else \PTB@department\\\fi Braunschweig und Berlin \\[\f@baselineskip]
\ifx\PTB@workingGroup\@empty\else \PTB@workingGroup\\\fi \ifx\first@author\@empty\else \textbf{\first@author}\\\fi
\end{tabular}% \ifx\PTB@department\@empty\else \PTB@department\\\fi
} \ifx\PTB@workingGroup\@empty\else \PTB@workingGroup\\\fi
\put(307mm,-17mm){% \end{tabular}%
\begin{tabular}[t]{@{}ll@{}} }
\ifx\PTB@street\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@street}\\\fi \put(313mm,\PTB@tempdima){%
\ifx\PTB@location\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@location}\\\fi \begin{tabular}[t]{@{}ll@{}}
\ifx\PTB@phone\@empty\else Telefon:&\PTB@phone\\\fi \ifx\PTB@street\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@street}\\\fi
\ifx\PTB@fax\@empty\else Fax:&\PTB@fax\\\fi \ifx\PTB@location\@empty\else\multicolumn{2}{@{}l@{}}{\PTB@location}\\\fi
\ifx\PTB@email\@empty\else E-Mail:&\href{mailto:\PTB@email}{\PTB@email}\\\fi \ifx\PTB@phone\@empty\else Telefon:&\PTB@phone\\\fi
\multicolumn{2}{@{}l@{}}{www.ptb.de} \ifx\PTB@fax\@empty\else Fax:&\PTB@fax\\\fi
\end{tabular}% \ifx\PTB@email\@empty\else E-Mail:&\href{mailto:\PTB@email}{\PTB@email}\\\fi
} \multicolumn{2}{@{}l@{}}{www.ptb.de}
\put(444mm,-17mm){% \end{tabular}%
\begin{tabular}[t]{@{}l@{}} }
\@thanks % wurde bei der Ausführung von \@author gefüllt. \put(450mm,\PTB@tempdima){%
\end{tabular}% \begin{tabular}[t]{@{}l@{}}
\@thanks % wurde bei der Ausführung von \@author gefüllt.
\end{tabular}%
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment