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

Auswertung Option "draft" (Schriftzug "Draft"/"Entwurf")

parent e652f6d9
No related branches found
No related tags found
No related merge requests found
\setcounter{errorcontextlines}{100} \setcounter{errorcontextlines}{100}
\RequirePackage{ifdraft}
\newcommand*\ks@location{Berlin} \newcommand*\ks@location{Berlin}
\newcommand*\ks@kalType{KK} \newcommand*\ks@kalType{KK}
\newcommand*\ks@layout{-0000} \newcommand*\ks@layout{-0000}
\newcommand*\ks@langs{ngerman,main=english} \newcommand*\ks@langs{ngerman,main=english}
\NeedsTeXFormat{LaTeX2e}[1999/12/01] \NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{kalibrierschein} \ProvidesClass{kalibrierschein}
[2017/12/01 v0.2c Dokumentenklasse (RN/PTB)] [2018/03/20 v0.3a Dokumentenklasse (RN/PTB)]
\DeclareOption{BS}{\def\ks@location{Braunschweig}} \DeclareOption{BS}{\def\ks@location{Braunschweig}}
\DeclareOption{BLN}{\def\ks@location{Berlin}} \DeclareOption{BLN}{\def\ks@location{Berlin}}
\DeclareOption{KK}{\edef\ks@kalType{\CurrentOption}} \DeclareOption{KK}{\edef\ks@kalType{\CurrentOption}}
...@@ -37,10 +38,12 @@ ...@@ -37,10 +38,12 @@
\RequirePackage[autostyle=true,german=guillemets,maxlevel=3]{csquotes}% \RequirePackage[autostyle=true,german=guillemets,maxlevel=3]{csquotes}%
\RequirePackage{iflang} \RequirePackage{iflang}
\IfLanguageName{ngerman}{% \IfLanguageName{ngerman}{%
\newcommand*\ks@draftName{Entwurf}%
\AtEndOfClass{\shorthandon{"}} \AtEndOfClass{\shorthandon{"}}
\defineshorthand{"`}{\openautoquote} \defineshorthand{"`}{\openautoquote}
\defineshorthand{"'}{\closeautoquote} \defineshorthand{"'}{\closeautoquote}
}{% }{%
\newcommand*\ks@draftName{Draft}%
} }
\MakeAutoQuote{»}{«} \MakeAutoQuote{»}{«}
\AtEndOfClass{% \AtEndOfClass{%
...@@ -83,6 +86,7 @@ ...@@ -83,6 +86,7 @@
\RequirePackage{ltablex}\keepXColumns{} \RequirePackage{ltablex}\keepXColumns{}
\setcounter{LTchunksize}{100} \setcounter{LTchunksize}{100}
\PassOptionsToPackage{final}{graphicx}
\RequirePackage{eso-pic,graphicx,booktabs} \RequirePackage{eso-pic,graphicx,booktabs}
\RequirePackage{zref-totpages} \RequirePackage{zref-totpages}
...@@ -376,17 +380,28 @@ ...@@ -376,17 +380,28 @@
\endgroup \endgroup
} }
\AtBeginDocument{% \AtBeginDocument{
\ifnum\number\ks@missingEntries>0 % \ifdraft{
\AddToShipoutPictureBG{% \AddToShipoutPictureBG{%
\AtTextCenter{% \AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{% \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{54.7}{% \rotatebox{54.7}{%
\textnormal{\textsf{\textbf{% \textnormal{\textsf{\textbf{%
\color{lightgray}Fehler:~\ks@missingEntries}}}}}}% \color{lightgray}\ks@draftName}}}}}}%
}% }%
}% }%
\fi }{%
\ifnum\number\ks@missingEntries>0 %
\AddToShipoutPictureBG{%
\AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{54.7}{%
\textnormal{\textsf{\textbf{%
\color{lightgray}Fehler:~\ks@missingEntries}}}}}}%
}%
}%
\fi
}
} }
\RequirePackage[ \RequirePackage[
......
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