1
0
Fork 0
mirror of https://github.com/benedictdudel/pandoc-letter-din5008.git synced 2024-08-16 10:19:49 +02:00

Merge pull request #8 from ascherer/optionalize-variables

Optionalize some variables and class options
This commit is contained in:
Benedict Dudel 2022-12-19 21:51:14 +01:00 committed by GitHub
commit 7b4b61e22b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View file

@ -78,3 +78,6 @@ The following yaml variables are supported:
- `subject`
- `return-address`
- `address`
If you want to add some options to the `scrlttr2` document class, you can list
them via the `letteroption` yaml variable.

View file

@ -2,10 +2,13 @@
foldmarks=true, % print foldmarks
foldmarks=BTm, % show foldmarks top, middle, bottom
fromalign=right, % letter head on the right
fromphone, % show phone number
fromemail, % show email
fromlogo, % show logo in letter head
version=last % latest version of KOMA letter
$if(phone)$ fromphone,$endif$ % show phone number
$if(email)$ fromemail,$endif$ % show email
$if(fromlogo)$ fromlogo,$endif$ % show logo in letter head
version=last, % latest version of KOMA letter
$for(letteroption)$
$letteroption$$sep$,
$endfor$
]{scrlttr2}
\usepackage[ngerman]{babel}
@ -47,16 +50,15 @@
\setkomavar{fromemail}{$email$}
\setkomavar{signature}{$author$}
\setkomavar{date}{$date$}
$if(date)$\setkomavar{date}{$date$}$endif$
\setkomavar{place}{$place$}
\setkomavar{subject}{$subject$}
$if(subject)$\setkomavar{subject}{$subject$}$endif$
\begin{letter}{%
$for(address)$
$address$$sep$\\
$endfor$
}
$endfor$}
\opening{$opening$}
@ -64,7 +66,7 @@
\closing{$closing$}
\ps $postskriptum$
$if(postskriptum)$\ps $postskriptum$$endif$
$if(encludes)$
\setkomavar*{enclseparator}{Anlage}