Revision 8cb0bc13
Von Marei Peischl vor mehr als 3 Jahren hinzugefügt
templates/print/marei/kiviletter.sty | ||
---|---|---|
1 | 1 |
\NeedsTeXFormat{LaTeX2e} |
2 | 2 |
\ProvidesPackage{kiviletter}[2020/04/24 Letter Layouts for Kivitendo] |
3 | 3 |
|
4 |
\RequirePackage{l3keys2e} |
|
5 |
|
|
6 |
\ExplSyntaxOn |
|
4 | 7 |
\newif\if@kivi@infobox |
5 | 8 |
\newif\if@kivi@footer |
6 |
\DeclareOption{reffields}{\@kivi@infoboxfalse} |
|
7 |
\DeclareOption{infobox}{\@kivi@infoboxtrue} |
|
8 |
\DeclareOption{nofooter}{\@kivi@footerfalse} |
|
9 |
\DeclareOption{footer}{\@kivi@footertrue} |
|
10 |
\@kivi@infoboxtrue |
|
11 |
\@kivi@footertrue |
|
9 |
\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 |
} |
|
19 |
\ExplSyntaxOff |
|
12 | 20 |
|
13 | 21 |
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{scrletter}} |
14 | 22 |
|
23 |
\ProcessKeysOptions{kiviletter} |
|
15 | 24 |
\ProcessOptions\relax |
16 | 25 |
|
17 |
|
|
18 |
\RequirePackage{expl3} |
|
19 | 26 |
\RequirePackage{xparse} |
20 | 27 |
\RequirePackage{iftex} |
21 |
\KOMAoptions{fontsize=12pt} |
|
28 |
|
|
22 | 29 |
% Schriftart, Eingabelayout der Tastatur |
23 | 30 |
\ifPDFTeX |
24 | 31 |
\RequirePackage[utf8]{inputenc}% Nur notwendig, wenn Basis älter als TL2018 |
Auch abrufbar als: Unified diff
marei: switch to keyval options