setup geometry settings to match Table pagestyle
authorMarei Peischl <marei@peitex.de>
Wed, 27 Nov 2019 12:11:28 +0000 (13:11 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
kiviletter.sty

index 7621a32..925e3c7 100644 (file)
@@ -166,6 +166,13 @@ align=tl,
 
 \AtBeginDocument{
        \csname kivi_setup_LT_boxes:\endcsname
+       \geometry{a4paper,
+               hmargin=\g_kivi_margin_dim,
+               top=\dim_eval:n {\g_kivi_margin_dim + \box_ht:N \g_kivi_LT@head_box},
+               bottom=\dim_eval:n {\g_kivi_margin_dim + \box_ht:N \g_kivi_LT@foot_box},
+               heightrounded}
+       \savegeometry{kivi.letter@table}
+       \loadgeometry{kivi.letter@default}
 }
 
 \cs_new:Nn \kivi_setup_LT_boxes: {