Revision 20a30dd1
Von Marei Peischl vor fast 5 Jahren hinzugefügt
kiviletter.sty | ||
---|---|---|
44 | 44 |
|
45 | 45 |
\setkomavar{backaddress}{\firma\ $\cdot$ \strasse\ $\cdot$ \ort} |
46 | 46 |
\@setplength{locwidth}{6cm} |
47 |
|
|
48 |
\ExplSyntaxOn |
|
49 |
\dim_new:N \g_kivi_tab_pos_dim |
|
50 |
\dim_gset:Nn \g_kivi_tab_pos_dim {3.5ex} |
|
51 |
\dim_new:N \g_kivi_tab_id_dim |
|
52 |
\dim_gset:Nn \g_kivi_tab_id_dim {4em} |
|
53 |
\dim_new:N \g_kivi_tab_num_dim |
|
54 |
\dim_gset:Nn \g_kivi_tab_num_dim {4em} |
|
55 |
\dim_new:N \g_kivi_tab_price_dim |
|
56 |
\dim_gset:Nn \g_kivi_tab_price_dim {4em} |
|
57 |
\dim_new:N \g_kivi_tab_desc_dim |
|
58 |
|
|
59 |
\dim_new:N \g_kivi_tabcolsep_dim |
|
60 |
\dim_gset:Nn \g_kivi_tabcolsep_dim {.5\tabcolsep} |
|
61 |
\newcommand*{\CalcTabCols}{ |
|
62 |
\dim_gset:Nn \g_kivi_tab_desc_dim {\textwidth-\g_kivi_tab_pos_dim -\g_kivi_tab_id_dim-\g_kivi_tab_num_dim - 2\g_kivi_tab_price_dim - 10\g_kivi_tabcolsep_dim} |
|
63 |
} |
|
64 |
|
|
65 |
\newcolumntype{P}{>{\arraybackslash}p{\g_kivi_tab_price_dim}} |
|
66 |
|
|
67 |
\newenvironment{PricingTabular}{ |
|
68 |
\begingroup |
|
69 |
\setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} |
|
70 |
\CalcTabCols |
|
71 |
\longtable{@{}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}}@{}} |
|
72 |
% Tabellenkopf |
|
73 |
\toprule |
|
74 |
\bfseries\position & \bfseries\artikelnummer & \bfseries\bezeichnung & \bfseries\menge &\multicolumn{1}{P}{\bfseries\einzelpreis}&\multicolumn{1}{P}{\bfseries\gesamtpreis}\\ |
|
75 |
\midrule |
|
76 |
\endhead |
|
77 |
\midrule |
|
78 |
\multicolumn{6}{@{}r@{}}{\weiteraufnaechsterseite}\\ |
|
79 |
\endfoot |
|
80 |
}{ |
|
81 |
\endlongtable |
|
82 |
\endgroup |
|
83 |
} |
|
84 |
|
|
85 |
\ExplSyntaxOff |
|
86 |
|
|
47 | 87 |
\renewcommand*{\raggedsignature}{\raggedright} |
48 | 88 |
|
49 | 89 |
\endinput |
Auch abrufbar als: Unified diff
table -> Pricing table