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

70 lines
1.5 KiB
Text
Raw Normal View History

2016-07-20 23:06:24 +02:00
\documentclass[
2022-12-19 22:56:33 +01:00
$if(phone)$ fromphone,$endif$
$if(email)$ fromemail,$endif$
$for(letteroption)$
$letteroption$$sep$,
$endfor$
2016-07-20 23:06:24 +02:00
]{scrlttr2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
2018-09-04 12:34:07 +02:00
\usepackage{csquotes} % German quotation marks
2016-07-20 23:06:24 +02:00
\usepackage{graphics}
\usepackage{booktabs}
2017-06-17 07:35:59 +02:00
\usepackage{longtable}
\usepackage[right]{eurosym}
2017-06-17 07:24:59 +02:00
2018-02-21 09:45:28 +01:00
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
2016-07-20 23:06:24 +02:00
\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$
2016-07-20 23:06:24 +02:00
\setkomavar{place}{$place$}
$if(subject)$\setkomavar{subject}{$subject$}$endif$
2016-07-20 23:06:24 +02:00
\begin{letter}{%
$for(address)$
$address$$sep$\\
$endfor$}
2016-07-20 23:06:24 +02:00
\opening{$opening$}
$body$
\closing{$closing$}
$if(ps)$\ps $ps$$endif$
2016-07-20 23:06:24 +02:00
$if(enclosed)$
\setkomavar*{enclseparator}{Anlage(n)}
\encl{$enclosed$}
2016-07-20 23:06:24 +02:00
$endif$
\end{letter}
\end{document}