From: Marei (peiTeX) Date: Thu, 29 Jul 2021 16:37:50 +0000 (+0200) Subject: marei: switch to keyval options X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~402^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8cb0bc132a57260984325f00cf56cca8e4d9badc;p=kivitendo-erp.git marei: switch to keyval options --- diff --git a/templates/print/marei/kiviletter.sty b/templates/print/marei/kiviletter.sty index 0ea200532..691d475ee 100644 --- a/templates/print/marei/kiviletter.sty +++ b/templates/print/marei/kiviletter.sty @@ -1,24 +1,31 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{kiviletter}[2020/04/24 Letter Layouts for Kivitendo] +\RequirePackage{l3keys2e} + +\ExplSyntaxOn \newif\if@kivi@infobox \newif\if@kivi@footer -\DeclareOption{reffields}{\@kivi@infoboxfalse} -\DeclareOption{infobox}{\@kivi@infoboxtrue} -\DeclareOption{nofooter}{\@kivi@footerfalse} -\DeclareOption{footer}{\@kivi@footertrue} -\@kivi@infoboxtrue -\@kivi@footertrue +\keys_define:nn {kiviletter} { + infobox .choices:nn = {true,false} {\use:c {@kivi@infobox\l_keys_choice_tl}}, + infobox .default:n = true, + infobox .initial:n = true, + reffields .meta:n = {infobox=false}, + footer .choices:nn = {true,false} {\use:c {@kivi@footer\l_keys_choice_tl}}, + footer .default:n = true, + footer .initial:n = true, + nofooter .meta:n = {footer=false} +} +\ExplSyntaxOff \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{scrletter}} +\ProcessKeysOptions{kiviletter} \ProcessOptions\relax - -\RequirePackage{expl3} \RequirePackage{xparse} \RequirePackage{iftex} -\KOMAoptions{fontsize=12pt} + % Schriftart, Eingabelayout der Tastatur \ifPDFTeX \RequirePackage[utf8]{inputenc}% Nur notwendig, wenn Basis älter als TL2018