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

"missingEntries"

parent e00599ef
Branches
No related tags found
No related merge requests found
File added
\documentclass[de]{ptb-confirm}
\missingEntries{ 17 }
\yourref{4711-0815}
\yourmail{2015-05-08}
......
File added
\documentclass[en]{ptb-confirm}
\missingEntries{ 0 }
\yourref{4711-0815}
\yourmail{2015-05-08}
......
......@@ -4,7 +4,7 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{ptb-confirm}
[2015/05/26 v0.1a PTB-Brief-Klasse (RN)]
[2016/11/17 v0.1b PTB-Brief-Klasse (RN)]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ptbletter}}
......@@ -14,6 +14,8 @@
,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{%
......@@ -35,6 +37,7 @@
\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{}
......@@ -49,8 +52,19 @@
\newcommand*\vl@Condition{}
\newcommand*\vl@ScheduleDate{}
\newcommand*\vl@Fee{}
\newcommand*\vl@missingEntries{}
\AtBeginDocument{%
\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 \\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment