From 71650e021a03cba1340dd5aa5d6a643a65a1341e Mon Sep 17 00:00:00 2001 From: "Marei (peiTeX)" Date: Sun, 27 Sep 2020 22:56:20 +0200 Subject: [PATCH] marei: ifkomascriptempty upate and fallback --- templates/print/marei/kiviletter.sty | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/templates/print/marei/kiviletter.sty b/templates/print/marei/kiviletter.sty index cce6ebec6..44fe651db 100644 --- a/templates/print/marei/kiviletter.sty +++ b/templates/print/marei/kiviletter.sty @@ -424,7 +424,7 @@ contents={\usebox\shippingAddressBox} \if@kivi@infobox \setkomavar{location}{ - \ifkomavarempty{transaction}{}{ + \Ifkomavarempty{transaction}{}{ \bfseries \usekomavar{transaction} } @@ -432,24 +432,24 @@ contents={\usebox\shippingAddressBox} \medskip \begin{tabularx}{\useplength{locwidth}}{@{}l<{:}>{\raggedleft\arraybackslash}X@{}} \usekomavar*{date}&\usekomavar{date}\\ - \ifkomavarempty{myref}{}{ + \Ifkomavarempty{myref}{}{ \usekomavar*{myref}&\usekomavar{myref}\\ } \kundennummer&\usekomavar{customer}\\ - \ifkomavarempty{yourref}{}{ + \Ifkomavarempty{yourref}{}{ \usekomavar*{yourref}&\usekomavar{yourref}\\ } - \ifkomavarempty{delivery}{}{ + \Ifkomavarempty{delivery}{}{ \usekomavar*{delivery}&\usekomavar{delivery}\\ } - \ifkomavarempty{quote}{}{ + \Ifkomavarempty{quote}{}{ \usekomavar*{quote}&\usekomavar{quote}\\ } - \ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\} - \ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\} + \Ifkomavarempty{orderID}{}{\auftragsnummer&\usekomavar{orderID}\\} + \Ifkomavarempty{projectID}{}{\projektnummer&\usekomavar{projectID}\\} \ansprechpartner&\usekomavar{fromname} - \ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}} - \ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}} + \Ifkomavarempty{fromphone}{}{\\\textTelefon&\usekomavar{fromphone}} + \Ifkomavarempty{fromemail}{}{\\\textEmail&\usekomavar{fromemail}} \end{tabularx} } \removereffields @@ -462,6 +462,12 @@ contents={\usebox\shippingAddressBox} \fi +%Fallback for older KOMA-Script-Versions +\cs_if_exist:NF \Ifstr {\let\Ifstr\ifstr} +\cs_if_exist:NF \Ifkomavarempty {\let\Ifkomavarempty\ifkomavarempty} + +%Definitionen für die insettings.tex + \newcommand*{\setupIdentpath}[1]{ \int_set:Nn \l_kivi_tmp_int {1} \bool_set_true:N \l_kivi_tmp_bool -- 2.20.1