Revision 3f735715
Von Marei Peischl vor mehr als 4 Jahren hinzugefügt
kiviletter.sty | ||
---|---|---|
60 | 60 |
]{kivitendo.shippingaddress} |
61 | 61 |
\DeclareNewPageStyleByLayers{kivitendo.letter.first}{kivitendo.shippingaddress} |
62 | 62 |
|
63 |
|
|
64 |
\ExplSyntaxOn |
|
65 |
\DeclareNewLayer[ |
|
66 |
foreground, |
|
67 |
textarea, |
|
68 |
mode=picture, |
|
69 |
contents={\box_use:N \g_kivi_LT@head_box}, |
|
70 |
align=tl, |
|
71 |
height=\box_ht:N \g_kivi_LT@head_box, |
|
72 |
]{kivitendo.TableHead} |
|
73 |
|
|
74 |
\DeclareNewLayer[ |
|
75 |
foreground, |
|
76 |
textarea, |
|
77 |
mode=picture, |
|
78 |
addvoffset=\textheight, |
|
79 |
height=\box_ht:N \g_kivi_LT@foot_box, |
|
80 |
contents=\box_use:N \g_kivi_LT@foot_box, |
|
81 |
align=bl, |
|
82 |
]{kivitendo.TableFoot} |
|
83 |
\ExplSyntaxOff |
|
84 |
|
|
85 |
\DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable}{kivitendo.TableHead, kivitendo.TableFoot} |
|
86 |
\DeclareNewPageStyleByLayers{kivitendo.letter.PricingTable.las}{kivitendo.TableHead} |
|
87 |
|
|
63 | 88 |
\setkomavar{backaddress}{\firma\ $\cdot$ \strasse\ $\cdot$ \ort} |
64 | 89 |
\@setplength{locwidth}{6cm} |
65 | 90 |
|
... | ... | |
113 | 138 |
\kivi_restore_LT@boxes: |
114 | 139 |
} |
115 | 140 |
|
116 |
\clist_map_inline:nn {head, firsthead, foot, lastfoot} { |
|
141 |
|
|
142 |
\tl_new:N \g_kivi_Pricing_colspec_tl |
|
143 |
\tl_gset:Nn \g_kivi_Pricing_colspec_tl {@{}p{\g_kivi_tab_pos_dim}p{\g_kivi_tab_id_dim}p{\g_kivi_tab_desc_dim}>{\raggedleft\arraybackslash}p{\g_kivi_tab_num_dim}*2{P<{\,\currency}}@{}} |
|
144 |
|
|
145 |
|
|
146 |
\clist_map_inline:nn {head, foot, firsthead, lastfoot} {%TODO reduce |
|
117 | 147 |
\box_new:c {g_kivi_LT@#1_box} |
118 | 148 |
} |
119 | 149 |
|
150 |
\AtBeginDocument{ |
|
151 |
\csname kivi_setup_LT_boxes:\endcsname |
|
152 |
} |
|
153 |
|
|
154 |
\cs_new:Nn \kivi_setup_LT_boxes: { |
|
155 |
\CalcTabCols |
|
156 |
\hbox_gset:Nn \g_kivi_LT@head_box { |
|
157 |
\setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} |
|
158 |
\exp_args:NnV \use:n {\tabular[b]}\g_kivi_Pricing_colspec_tl |
|
159 |
\toprule |
|
160 |
\bfseries\position & \bfseries\artikelnummer & \bfseries\bezeichnung & \bfseries\menge &\multicolumn{1}{P}{\bfseries\einzelpreis}&\multicolumn{1}{P@{}}{\bfseries\gesamtpreis}\\ |
|
161 |
\midrule |
|
162 |
\endtabular |
|
163 |
} |
|
164 |
\hbox_gset:Nn \g_kivi_LT@foot_box { |
|
165 |
\begin{tabular*}{\textwidth}[b]{@{\extracolsep{\fill}}r@{}} |
|
166 |
\midrule |
|
167 |
\weiteraufnaechsterseite |
|
168 |
\end{tabular*} |
|
169 |
} |
|
170 |
} |
|
171 |
|
|
172 |
|
|
173 |
|
|
120 | 174 |
\cs_new:Nn \kivi_save_LT@boxes: { |
121 | 175 |
\clist_map_inline:nn {head, firsthead, foot, lastfoot} { |
122 | 176 |
\box_gset_eq:cc {g_kivi_LT@##1_box} {LT@##1} |
Auch abrufbar als: Unified diff
pagestyle mechanism for tableheader and tcolorboxes