mirror of
https://github.com/benedictdudel/pandoc-letter-din5008.git
synced 2024-08-16 10:19:49 +02:00
f6753d28cd
Not every user has an email address to show.
71 lines
1.7 KiB
Text
71 lines
1.7 KiB
Text
\documentclass[
|
|
foldmarks=true, % print foldmarks
|
|
foldmarks=BTm, % show foldmarks top, middle, bottom
|
|
fromalign=right, % letter head on the right
|
|
$if(phone)$fromphone,$endif$ % show phone number
|
|
$if(fromemail)$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}
|
|
\usepackage[T1]{fontenc}
|
|
\usepackage[utf8]{inputenc}
|
|
|
|
\usepackage{parskip}
|
|
|
|
\usepackage{graphics}
|
|
|
|
\usepackage{booktabs}
|
|
\usepackage{longtable}
|
|
|
|
\usepackage[right]{eurosym}
|
|
|
|
\makeatletter
|
|
\setlength{\@tempskipa}{-1.2cm}%
|
|
\@addtoplength{toaddrheight}{\@tempskipa}
|
|
\makeatother
|
|
|
|
\setlength{\oddsidemargin}{\useplength{toaddrhpos}}
|
|
\addtolength{\oddsidemargin}{-1in}
|
|
\setlength{\textwidth}{\useplength{firstheadwidth}}
|
|
|
|
\begin{document}
|
|
\setkomavar{fromname}{$author$}
|
|
\renewcommand*{\raggedsignature}{\raggedright}
|
|
\setkomavar{fromaddress}{
|
|
$for(return-address)$
|
|
$return-address$$sep$\\
|
|
$endfor$
|
|
}
|
|
\setkomavar{fromphone}{$phone$}
|
|
\setkomavar{fromemail}{$email$}
|
|
\setkomavar{signature}{$author$}
|
|
|
|
\setkomavar{date}{$if(date)$$date$$else$\today$endif$}
|
|
\setkomavar{place}{$place$}
|
|
|
|
$if(subject)$\setkomavar{subject}{$subject$}$endif$
|
|
|
|
\begin{letter}{%
|
|
$for(address)$
|
|
$address$$sep$\\
|
|
$endfor$}
|
|
|
|
\opening{$opening$}
|
|
|
|
$body$
|
|
|
|
\closing{$closing$}
|
|
|
|
$if(postskriptum)$\ps $postskriptum$$endif$
|
|
|
|
$if(encludes)$
|
|
\setkomavar*{enclseparator}{Anlage}
|
|
\encl{$encludes$}
|
|
$endif$
|
|
\end{letter}
|
|
\end{document}
|