Revision 95eab00b
Von Marei Peischl vor mehr als 3 Jahren hinzugefügt
templates/print/marei/kiviletter.sty | ||
---|---|---|
3 | 3 |
|
4 | 4 |
\RequirePackage{l3keys2e} |
5 | 5 |
|
6 |
%Optionen vor den eigenen Paketoptionen hinzufügen, damit spätere diese ggf. überschreiben |
|
7 |
\PassOptionsToPackage{ |
|
8 |
fromlogo, |
|
9 |
fromalign=right, |
|
10 |
firstfoot=false,%Für einheitliche Randeinstellungen |
|
11 |
refline=nodate, |
|
12 |
}{scrletter} |
|
13 |
|
|
6 | 14 |
\ExplSyntaxOn |
7 | 15 |
\newif\if@kivi@infobox |
8 | 16 |
\newif\if@kivi@footer |
9 | 17 |
\keys_define:nn {kiviletter} { |
10 |
infobox .choices:nn = {true,false} {\use:c {@kivi@infobox\l_keys_choice_tl}}, |
|
11 |
infobox .default:n = true, |
|
12 |
infobox .initial:n = true, |
|
13 |
reffields .meta:n = {infobox=false}, |
|
14 |
footer .choices:nn = {true,false} {\use:c {@kivi@footer\l_keys_choice_tl}}, |
|
15 |
footer .default:n = true, |
|
16 |
footer .initial:n = true, |
|
17 |
nofooter .meta:n = {footer=false} |
|
18 |
infobox .choices:nn = {true,false} {\use:c {@kivi@infobox\l_keys_choice_tl}}, |
|
19 |
infobox .default:n = true, |
|
20 |
infobox .initial:n = true, |
|
21 |
reffields .meta:n = {infobox=false}, |
|
22 |
footer .choices:nn = {true,false} {\use:c {@kivi@footer\l_keys_choice_tl}}, |
|
23 |
footer .default:n = true, |
|
24 |
footer .initial:n = true, |
|
25 |
nofooter .meta:n = {footer=false}, |
|
26 |
unknown .code:n = \PassOptionsToPackage{\l_keys_key_str=#1}{scrletter}, |
|
18 | 27 |
} |
19 | 28 |
\ExplSyntaxOff |
20 | 29 |
|
21 |
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{scrletter}} |
|
22 |
|
|
23 | 30 |
\ProcessKeysOptions{kiviletter} |
24 |
\ProcessOptions\relax |
|
25 | 31 |
|
26 | 32 |
\RequirePackage{xparse} |
27 | 33 |
\RequirePackage{iftex} |
... | ... | |
42 | 48 |
\RequirePackage{booktabs} |
43 | 49 |
\RequirePackage{graphicx} |
44 | 50 |
|
45 |
\PassOptionsToPackage{fromlogo,fromalign=right, |
|
46 |
firstfoot=false,%Für einheitliche Randeinstellungen |
|
47 |
refline=nodate, |
|
48 |
}{scrletter} |
|
49 | 51 |
\RequirePackage{scrletter} |
50 | 52 |
\LoadLetterOption{DIN} |
51 | 53 |
|
... | ... | |
153 | 155 |
amount=5em, |
154 | 156 |
price=7em, |
155 | 157 |
pricetotal=7em, |
156 |
% desc=auto,
|
|
158 |
% desc=auto,
|
|
157 | 159 |
pos/header=\position, |
158 | 160 |
id/header=\artikelnummer, |
159 | 161 |
desc/header=\bezeichnung, |
... | ... | |
402 | 404 |
\NewDocumentEnvironment{PricingTotal}{+b}{ |
403 | 405 |
\par\nointerlineskip |
404 | 406 |
}{ |
405 |
\bool_if:NT \g__kivi_Tabular_rowcolor_bool {\nointerlineskip\kivi@tabcolorbox{\g__kivi_Tabular_rowcolor_PricingTotal_tl}}
|
|
407 |
\bool_if:NT \g__kivi_Tabular_rowcolor_bool {\nointerlineskip\kivi@tabcolorbox{\g__kivi_Tabular_rowcolor_PricingTotal_tl}}
|
|
406 | 408 |
{ |
407 | 409 |
\tabular[t]{ |
408 | 410 |
@{\bool_if:NT \g__kivi_Tabular_rowcolor_bool {\hskip\tabcolsep}} |
... | ... | |
449 | 451 |
\bool_if:NTF \g__kivi_Tabular_rowcolor_bool {\noalign{\skip_vertical:n {\dp\strutbox}}}\toprule |
450 | 452 |
\cs_gset_eq:NN \__kivi_tab_column_currency: \__kivi_tab_column_header_currency: |
451 | 453 |
\bool_set_false:N \l_tmpa_bool |
452 |
\clist_map_inline:Nn \g_kivi_pricingtable_col_clist {
|
|
454 |
\clist_map_inline:Nn \g_kivi_pricingtable_col_clist {
|
|
453 | 455 |
\bool_if:cT {l_kivi_col_##1_bool} { |
454 | 456 |
\bool_if:NT \l_tmpa_bool {&} |
455 | 457 |
\bool_set_true:N \l_tmpa_bool |
... | ... | |
495 | 497 |
\tl_if_in:nnTF {#1} {=} {\keys_set:nn {kivi/SimpleTabular} {#1}} {\tl_if_empty:nF {#1} {\tl_set:Nn \l_kivi_SimpleTabular_headline_tl {#1}}} |
496 | 498 |
\setlength{\tabcolsep}{\g_kivi_tabcolsep_dim} |
497 | 499 |
\dim_set:Nn \parskip {\c_zero_dim} |
498 |
\bool_if:NF \g__kivi_Tabular_rowcolor_bool {
|
|
500 |
\bool_if:NF \g__kivi_Tabular_rowcolor_bool {
|
|
499 | 501 |
\tl_put_right:Nn \l_kivi_SimpleTabular_colspec_tl {@{}} |
500 | 502 |
\tl_put_left:Nn \l_kivi_SimpleTabular_colspec_tl {@{}} |
501 | 503 |
} |
Auch abrufbar als: Unified diff
adjust indentation