adjust margin settings
authorMarei Peischl <marei@peitex.de>
Wed, 27 Nov 2019 12:02:58 +0000 (13:02 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
kiviletter.sty

index e2e65c2..cb80541 100644 (file)
 \DeclareUnicodeCharacter{20AC}{\euro}
 \fi
 
-\RequirePackage[fromlogo,fromalign=right]{scrletter}
+\RequirePackage[fromlogo,fromalign=right,
+       firstfoot=false,%Für einheitliche Randeinstellungen
+       ]{scrletter}
 \LoadLetterOption{DIN}
 
 \usepackage{geometry}
 
-\geometry{a4paper,margin=\useplength{toaddrhpos}}
-
 \ExplSyntaxOn
+\dim_new:N \g_kivi_margin_dim
+\dim_gset:Nn \g_kivi_margin_dim {\useplength{toaddrhpos}}
+\geometry{a4paper,margin=\g_kivi_margin_dim,heightrounded}
+\savegeometry{kivi.letter@default}
 %Scratch variables
 \int_new:N \l_kivi_tmp_int
 \bool_new:N \l_kivi_tmp_bool