marei: fix expansion for outdated tex live versions
authorMarei (peiTeX) <marei@peitex.de>
Wed, 3 Jun 2020 15:36:01 +0000 (17:36 +0200)
committerJan Büren <jan@kivitendo.de>
Wed, 21 Oct 2020 11:42:01 +0000 (13:42 +0200)
templates/print/marei/kiviletter.sty

index 84f9cdb..aa18080 100644 (file)
@@ -240,8 +240,8 @@ contents={\usebox\shippingAddressBox}
        \bool_if:NT \l_kivi_col_id_bool {p{\l_kivi_tab_id_dim}}
        p{\l_kivi_tab_desc_dim}
        \bool_if:NT \l_kivi_col_amount_bool {\exp_not:n {>{\raggedleft\arraybackslash}p{\l_kivi_tab_amount_dim}}}
-       \bool_if:NT \l_kivi_col_price_bool {>{\raggedleft\arraybackslash}p{\l_kivi_tab_price_dim}<{\,\currency}}
-       \bool_if:NT \l_kivi_col_pricetotal_bool {>{\raggedleft\arraybackslash}p{\l_kivi_tab_pricetotal_dim}<{\,\currency}}
+       \bool_if:NT \l_kivi_col_price_bool {\exp_not:n {>{\raggedleft\arraybackslash}p{\l_kivi_tab_price_dim}<{\,\currency}}}
+       \bool_if:NT \l_kivi_col_pricetotal_bool {\exp_not:n {>{\raggedleft\arraybackslash}p{\l_kivi_tab_pricetotal_dim}<{\,\currency}}}
        @{}
 }
 
@@ -376,8 +376,8 @@ contents={\usebox\shippingAddressBox}
 \removereffields
 \AtBeginLetter{
        \ifdim\ht\shippingAddressBox>\z@
-       \addtoplength{refvpos}{\dimexpr\ht\shippingAddressBox+\dp\shippingAddressBox}
-       \addtoplength{refvpos}{4\baselineskip}%sep between address boxes
+       \@addtoplength{refvpos}{\dimexpr\ht\shippingAddressBox+\dp\shippingAddressBox}
+       \@addtoplength{refvpos}{4\baselineskip}%sep between address boxes
        \fi
 }
 \ExplSyntaxOff