% Rolf Niepraschk, Rolf.Niepraschk@ptb.de \setcounter{errorcontextlines}{100} \listfiles \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{ptb-confirm} [2016/11/17 v0.1b PTB-Brief-Klasse (RN)] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{ptbletter}} \ProcessOptions\relax \LoadClass[% ,BLN ]{ptbletter} \RequirePackage{eso-pic,graphicx,xcolor} \newcommand*\vl@setcommand[3][]{% #1=default (opt.), #2=macro, #3=value \edef\vl@tempa{\trim@spaces@noexp{#3}}% \expandafter\protected@xdef\csname #2\endcsname{% \ifx\@empty\vl@tempa #1\else\vl@tempa\fi}% } \RequirePackage{trimspaces,siunitx} \newcommand*\DateOfApplication[1]{\vl@setcommand{vl@DateOfApplication}{#1}} \newcommand*\KindOfEnquiry[1]{\vl@setcommand{vl@KindOfEnquiry}{#1}} \newcommand*\DateOfEnquiry[1]{\vl@setcommand[\vl@DateOfApplication]{vl@DateOfEnquiry}{#1}} \newcommand*\Company[1]{\vl@setcommand{vl@Company}{#1}} \newcommand*\Name[1]{\vl@setcommand{vl@Name}{#1}} \newcommand*\Street[1]{\vl@setcommand{vl@Street}{#1}} \newcommand*\Zipcode[1]{\vl@setcommand{vl@Zipcode}{#1}} \newcommand*\Town[1]{\vl@setcommand{vl@Town}{#1}} \newcommand*\Land[1]{\vl@setcommand{vl@Land}{#1}} \newcommand*\Device[1]{\vl@setcommand{vl@Device}{#1}} \newcommand*\Condition[1]{\vl@setcommand{vl@Condition}{#1}} \newcommand*\ScheduleDate[1]{\vl@setcommand{vl@ScheduleDate}{#1}} \newcommand*\Fee[1]{\vl@setcommand{vl@Fee}{\num{#1}}} \newcommand*\missingEntries[1]{\vl@setcommand{vl@missingEntries}{#1}} \newcommand*\vl@DateOfApplication{} \newcommand*\vl@KindOfEnquiry{} \newcommand*\vl@DateOfEnquiry{} \newcommand*\vl@Company{} \newcommand*\vl@Name{} \newcommand*\vl@Street{} \newcommand*\vl@Zipcode{} \newcommand*\vl@Town{} \newcommand*\vl@Land{} \newcommand*\vl@Device{} \newcommand*\vl@Condition{} \newcommand*\vl@ScheduleDate{} \newcommand*\vl@Fee{} \newcommand*\vl@missingEntries{0} \AtBeginDocument{% \ifnum\number\vl@missingEntries>0 % \AddToShipoutPictureBG{% \AtTextCenter{% \makebox(0,0)[c]{\resizebox{\textwidth}{!}{% \rotatebox{54.7}{% \textnormal{\textsf{\textbf{% \color{lightgray}Fehler:~\vl@missingEntries}}}}}}% }% }% \fi \begin{letter}{% \vl@Company \\ \vl@Name \smallskip \\ \vl@Street \\ \vl@Zipcode\ \vl@Town \ifx\vl@Land\@empty\else \bigskip \\ \textls[75]{\MakeUppercase{\vl@Land}} \fi } \iflanguage{ngerman}{% \sisetup{locale=DE} \subject{Antragsbestätigung}% \input{ptb-confirm-de.lco}% }{% \sisetup{locale=UK} \subject{Confirmation of Order}% \input{ptb-confirm-en.lco}% }% \end{letter} }% \endinput