From b29a71cd39edbb81eded152021a47a94edd75133 Mon Sep 17 00:00:00 2001 From: Marei Peischl Date: Wed, 27 Nov 2019 14:16:09 +0100 Subject: [PATCH] add thispagestyle only if pagebreak --- kiviletter.sty | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiviletter.sty b/kiviletter.sty index b02b9ba65..31fbeb9bb 100644 --- a/kiviletter.sty +++ b/kiviletter.sty @@ -53,6 +53,7 @@ \bool_new:N \l_kivi_tmp_bool \bool_new:N \g_kivi_TableFoot_bool \dim_new:N \g_kivi_orig@textheight_dim +\int_new:N \g_PricingTabular_firstpage_int \ExplSyntaxOff \newsavebox{\shippingAddressBox} @@ -235,6 +236,7 @@ align=bl, \Gm@changelayout \begingroup \def \@currenvir {PricingTabular*}\edef \@currenvline {\on@line } + \int_gset:Nn \g_PricingTabular_firstpage_int {\c@page} \addtolength{\vsize}{-\box_ht:N \g_kivi_LT@foot_box} \pagegoal\vsize \widowpenalty0 @@ -246,7 +248,7 @@ align=bl, } \cs_new:cpn {endPricingTabular*} { - \thispagestyle{kivitendo.letter.PricingTable} + \int_compare:nNnF \g_PricingTabular_firstpage_int = \c@page {\thispagestyle{kivitendo.letter.PricingTable}} \bool_gset_false:N \g_kivi_TableFoot_bool \@nameuse{Gm@restore@@kivi.letter@default} \Gm@changelayout -- 2.20.1