From cf3e1416742fe8f4d7a39d60abf1d381a38e8923 Mon Sep 17 00:00:00 2001 From: niepra01 <rolf.niepraschk@ptb.de> Date: Mon, 4 Dec 2017 14:49:05 +0100 Subject: [PATCH] =?UTF-8?q?Ger=C3=A4te-Tabzeilen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- antragsbestaetigung/ptb-confirm-de.lco | 2 +- antragsbestaetigung/ptb-confirm-en.lco | 4 ++-- antragsbestaetigung/ptb-confirm.cls | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/antragsbestaetigung/ptb-confirm-de.lco b/antragsbestaetigung/ptb-confirm-de.lco index 1c0c960..32dd5a9 100644 --- a/antragsbestaetigung/ptb-confirm-de.lco +++ b/antragsbestaetigung/ptb-confirm-de.lco @@ -10,7 +10,7 @@ Kalibrierung durch: \medskip\noindent \begin{tabular}{@{}l@{~~}l@{}} -Gerät(e): & \vl@Device \\ +Gerät(e): \the\vl@devTabLines Kalibrierbedingungen: & \vl@Condition \\ Vorgesehenes Datum: & \vl@ScheduleDate \\ Gebühr: & \vl@Fee\,€ \\ diff --git a/antragsbestaetigung/ptb-confirm-en.lco b/antragsbestaetigung/ptb-confirm-en.lco index 82118f7..5c525ae 100644 --- a/antragsbestaetigung/ptb-confirm-en.lco +++ b/antragsbestaetigung/ptb-confirm-en.lco @@ -5,12 +5,12 @@ \opening{} According to your order of \usekomavar{yourmail}, received here via -\vl@KindOfEnquiry{} on \vl@DateOfEnquiry{}, PTB will carry out the following +\vl@KindOfEnquiry{} on \vl@DateOfEnquiry{}, PTB will carry out the following calibration: \medskip\noindent \begin{tabular}{@{}l@{~~}l@{}} -Device(s): & \vl@Device \\ +Device(s): & \the\vl@devTabLines Calibration conditions: & \vl@Condition \\ Scheduled date: & \vl@ScheduleDate \\ Calibration fee: & \vl@Fee\,€ \\ diff --git a/antragsbestaetigung/ptb-confirm.cls b/antragsbestaetigung/ptb-confirm.cls index 2583891..eba18ba 100644 --- a/antragsbestaetigung/ptb-confirm.cls +++ b/antragsbestaetigung/ptb-confirm.cls @@ -62,6 +62,7 @@ \newcommand*\vl@ScheduleDate{} \newcommand*\vl@Fee{} \newcommand*\vl@missingEntries{0} +\newtoks\vl@devTabLines \AtBeginDocument{% \ifnum\number\vl@missingEntries>0 % @@ -74,6 +75,12 @@ }% }% \fi + \vl@devTabLines{}% + \def\do#1{% + \vl@devTabLines\expandafter{\the\vl@devTabLines &}% + \vl@devTabLines\expandafter{\the\vl@devTabLines #1\\}% + } + \expandafter\docsvlist\expandafter{\vl@Device}% \begin{letter}{% \vl@Company \\ \vl@Name \smallskip \\ -- GitLab