Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9047bd6e

Von Marei Peischl vor fast 5 Jahren hinzugefügt

  • ID 9047bd6e8d7ef9be11b0a82036e096e3651ff2c1
  • Vorgänger b35c0a95
  • Nachfolger db43f582

extend pagestyles

Unterschiede anzeigen:

kiviletter.sty
51 51
%Scratch variables
52 52
\int_new:N \l_kivi_tmp_int
53 53
\bool_new:N \l_kivi_tmp_bool
54
\dim_new:N \g_kivi_orig@textheight_dim
54 55
\ExplSyntaxOff
55 56

  
56 57
\newsavebox{\shippingAddressBox}
......
62 63
voffset=\dimexpr\useplength{toaddrvpos}+\useplength{toaddrheight}+\baselineskip,
63 64
contents={\usebox\shippingAddressBox}
64 65
]{kivitendo.shippingaddress}
65
\DeclareNewPageStyleByLayers{kivitendo.letter.first}{kivitendo.shippingaddress}
66 66

  
67 67

  
68 68
\ExplSyntaxOn
69 69
\DeclareNewLayer[
70 70
foreground,
71
textarea,
72 71
mode=picture,
73
contents={\box_use:N \g_kivi_LT@head_box},
72
hoffset=\g_kivi_margin_dim,
73
voffset=\g_kivi_margin_dim,
74 74
align=tl,
75 75
height=\box_ht:N \g_kivi_LT@head_box,
76
contents={\box_use:N \g_kivi_LT@head_box},
76 77
]{kivitendo.TableHead}
77 78

  
78 79
\DeclareNewLayer[
79 80
foreground,
80 81
textarea,
81 82
mode=picture,
82
addvoffset=\textheight,
83
voffset=\dim_eval:n {\paperheight-\g_kivi_margin_dim-\box_ht:N \g_kivi_LT@foot_box},
83 84
height=\box_ht:N \g_kivi_LT@foot_box,
84
contents=\box_use:N \g_kivi_LT@foot_box,
85
align=bl,
85
contents=\bool_if:NT \g_kivi_TableFoot_bool {\box_use:N \g_kivi_LT@foot_box},
86
align=tl,
86 87
]{kivitendo.TableFoot}
88

  
89
\AtBeginLetter{\dim_gset:Nn \g_kivi_orig@textheight_dim {\textheight}}
87 90
\ExplSyntaxOff
88 91

  
89
\DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable}{kivitendo.TableHead, kivitendo.TableFoot}
90
\DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable.las}{kivitendo.TableHead}
92
\DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable}{
93
	kivitendo.TableHead,
94
	kivitendo.TableFoot
95
}
96
\DeclareNewPageStyleByLayers{kivitendo.letter.first}{
97
	kivitendo.shippingaddress,
98
	kivitendo.TableFoot.first
99
}
91 100

  
92 101
\setkomavar{backaddress}{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}
93 102
\@setplength{locwidth}{6cm}

Auch abrufbar als: Unified diff