scrlayer-scrpage compat
authorMarei Peischl <marei@peitex.de>
Wed, 27 Nov 2019 13:36:07 +0000 (14:36 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
insettings.tex
kiviletter.sty

index c90c85a..73e7be7 100644 (file)
@@ -67,8 +67,7 @@
 \KOMAoptions{fontsize=10pt}
 
 % Einstellungen f. Kopf und Fuss
-\pagestyle{scrheadings}
-\clearpairofpagestyles
+\pagestyle{kivitendo.letter}
 %\setheadwidth[20mm]{page} % Kopfzeile nach rechts verschieben
 %\setfootwidth[-39mm]{page} % Fusszeile verschieben
 
index cede0cd..8833bc8 100644 (file)
@@ -92,17 +92,20 @@ align=bl,
 \AtBeginLetter{\dim_gset:Nn \g_kivi_orig@textheight_dim {\textheight}}
 \ExplSyntaxOff
 
+\newpairofpagestyles{kivitendo.letter}{}
+\renewcommand*{\letterpagestyle}{kivitendo.letter}
+
 \DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable}{
        kivitendo.TableHead,
        kivitendo.TableFoot
-       scrheadings.head.odd,scrheadings.head.even,scrheadings.head.oneside,%
-       scrheadings.foot.odd,scrheadings.foot.even,scrheadings.foot.oneside,%
+       kivitendo.letter.head.odd,kivitendo.letter.head.even,kivitendo.letter.head.oneside,%
+       kivitendo.letter.foot.odd,kivitendo.letter.foot.even,kivitendo.letter.foot.oneside,%
 }
 \DeclareNewPageStyleByLayers{kivitendo.letter.first}{
        kivitendo.shippingaddress,
        kivitendo.TableFoot,
-       scrheadings.head.odd,scrheadings.head.even,scrheadings.head.oneside,%
-       scrheadings.foot.odd,scrheadings.foot.even,scrheadings.foot.oneside,%
+       kivitendo.letter.head.odd,kivitendo.letter.head.even,kivitendo.letter.head.oneside,%
+       kivitendo.letter.foot.odd,kivitendo.letter.foot.even,kivitendo.letter.foot.oneside,%
 }
 
 \setkomavar{backaddress}{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}