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

Optionalize some variables.

Add 'letteroption' for additional options, e.g., .lco files,
for the 'scrlttr2' documentclass.

Make 'date' optional and '\today' the default.

Make 'postskriptum' optional.
This commit is contained in:
Andreas Scherer 2019-08-24 19:31:39 +02:00
parent b2db002e5a
commit ab4ec36ed7

View file

@ -5,7 +5,10 @@
fromphone, % show phone number
fromemail, % show email
fromlogo, % show logo in letter head
version=last % latest version of KOMA letter
version=last, % latest version of KOMA letter
$for(letteroption)$
$letteroption$$sep$,
$endfor$
]{scrlttr2}
\usepackage[ngerman]{babel}
@ -42,10 +45,10 @@
\setkomavar{fromemail}{$email$}
\setkomavar{signature}{$author$}
\setkomavar{date}{$date$}
\setkomavar{date}{$if(date)$$date$$else$\today$endif$}
\setkomavar{place}{$place$}
\setkomavar{subject}{$subject$}
$if(subject)$\setkomavar{subject}{$subject$}$endif$
\begin{letter}{%
$for(address)$
@ -59,7 +62,7 @@
\closing{$closing$}
\ps $postskriptum$
$if(postskriptum)$\ps $postskriptum$$endif$
$if(encludes)$
\setkomavar*{enclseparator}{Anlage}