From 11e7267225de7ff60b5583543330785ccccc3aec Mon Sep 17 00:00:00 2001 From: Marei Peischl Date: Thu, 21 Nov 2019 15:23:25 +0100 Subject: [PATCH] \FakeTable --- kiviletter.sty | 10 +++++----- sales_quotation.tex | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/kiviletter.sty b/kiviletter.sty index ecb4a16e6..9a98e1bd2 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -80,18 +80,18 @@ contents={\usebox\shippingAddressBox} \newcolumntype{P}{>{\raggedleft\arraybackslash}p{\g_kivi_tab_price_dim}} -\if@kivi@faketable +%\if@kivi@faketable \RequirePackage{environ} \ExplSyntaxOn \seq_new:N \l_kivi_PricingTable_seq -\NewEnviron{PricingTabular}{ +\NewDocumentCommand{\FakeTable}{m}{ % \tl_set:No \l_tmpa_tl {\BODY} - \seq_set_split:NnV \l_kivi_PricingTable_seq {\tabularnewline} \BODY + \seq_set_split:Nnn \l_kivi_PricingTable_seq {\tabularnewline} {#1} \seq_show:N \l_kivi_PricingTable_seq } \ExplSyntaxOff -\else +%\else \newenvironment{PricingTabular}{ \begingroup \setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} @@ -109,7 +109,7 @@ contents={\usebox\shippingAddressBox} \endlongtable \endgroup } -\fi +%\fi \ExplSyntaxOff diff --git a/sales_quotation.tex b/sales_quotation.tex index 2358b2597..17195848d 100644 --- a/sales_quotation.tex +++ b/sales_quotation.tex @@ -139,6 +139,7 @@ \bottomrule \endlastfoot % eigentliche Tabelle +\FakeTable{ <%foreach number%> <%runningnumber%> & <%number%> & @@ -153,6 +154,7 @@ \ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}} <%linetotal%>\tabularnewline <%end number%> +} \end{PricingTabular} <%if notes%> -- 2.20.1