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