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:
parent
b2db002e5a
commit
ab4ec36ed7
1 changed files with 7 additions and 4 deletions
11
letter.latex
11
letter.latex
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue