1
0
Fork 0
mirror of https://github.com/benedictdudel/pandoc-letter-din5008.git synced 2024-08-16 10:19:49 +02:00
mirror-pandoc-letter-din5008/letter.latex
2022-12-19 22:58:13 +01:00

69 lines
1.5 KiB
Text

\documentclass[
$if(phone)$ fromphone,$endif$
$if(email)$ fromemail,$endif$
$for(letteroption)$
$letteroption$$sep$,
$endfor$
]{scrlttr2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{csquotes} % German quotation marks
\usepackage{graphics}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage[right]{eurosym}
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\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$}
$if(date)$\setkomavar{date}{$date$}$endif$
\setkomavar{place}{$place$}
$if(subject)$\setkomavar{subject}{$subject$}$endif$
\begin{letter}{%
$for(address)$
$address$$sep$\\
$endfor$}
\opening{$opening$}
$body$
\closing{$closing$}
$if(ps)$\ps $ps$$endif$
$if(enclosed)$
\setkomavar*{enclseparator}{Anlage(n)}
\encl{$enclosed$}
$endif$
\end{letter}
\end{document}