Forked from
vaclab / ptb-latex
Source project has a limited visibility.
-
Rolf Niepraschk authoredRolf Niepraschk authored
ptbposter.cls 8.77 KiB
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\setcounter{errorcontextlines}{100}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptbposter}
[2015/03/18 v0.2c PTB-Poster-Klasse (RN)]
\PassOptionsToPackage{paper=a0paper}{geometry}
\newdimen\PTB@topmargin
\newdimen\PTB@leftmargin
\newdimen\PTB@default@fsize \setlength\PTB@default@fsize{41pt}
\newdimen\PTB@textsep \setlength\PTB@textsep{.5\PTB@default@fsize}
\newcommand\PTB@tempa{}
\newcommand\PTB@tempb{}
\newcommand\PTB@tempc{}
\newcommand\PTB@tempd{}
\newcommand\PTB@tempe{}
\DeclareOption{portrait}{%
\setlength\PTB@leftmargin{0.5\dimexpr 841mm-780mm}
\setlength\PTB@topmargin{228mm}
\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}}
\PTB@tempa
}
\DeclareOption{landscape}{%
\setlength\PTB@leftmargin{0.5\dimexpr 1189mm-1130mm}
\setlength\PTB@topmargin{228mm}
\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}}
\PTB@tempa
}
\DeclareOption{sanserif}{% experimentell! Besser: luaTeX/xeTeX
\AtEndOfClass{%
\renewcommand\familydefault{\sfdefault}
\RequirePackage{sfmath}
}
}
\DeclareOption{serif}{%
\AtEndOfClass{%
\renewcommand\familydefault{\rmdefault}
}
}
\newcommand*\scaleFontSizes[1]{%
\@ovri=\PTB@default@fsize %
\changefontsizes{#1\@ovri}%
}
%%%\PassOptionsToClass{fontsize=\the\PTB@default@fsize}{scrartcl}
\ExecuteOptions{portrait,ngerman,serif}
\ProcessOptions\relax
\LoadClass{scrartcl}
\scaleFontSizes{1}% Werte nahe 1 sind empfohlen.
\RequirePackage[columnsep=2.5em]{geometry}
\RequirePackage[svgnames]{xcolor}
\RequirePackage[newcommands,newparameters]{ragged2e}% ???
\RequirePackage{multicol,graphicx}