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
Andreas Scherer 135451de17 KOMA-Script doesn't require parskip package.
Instead, scrlttr2 issues the following warning:

Class scrlttr2 Warning: Usage of package `parskip' together
(scrlttr2)              with a KOMA-Script class is not recommended.
(scrlttr2)              I'd suggest to use option
(scrlttr2)              `parskip' with one of it's several values.
(scrlttr2)              Nevertheless, using requested
(scrlttr2)              package `parskip' on input line 16.
2019-10-20 18:03:26 +02:00

68 lines
1.6 KiB
Text

\documentclass[
foldmarks=true, % print foldmarks
foldmarks=BTm, % show foldmarks top, middle, bottom
fromalign=right, % letter head on the right
fromphone, % show phone number
fromemail, % show email
fromlogo, % show logo in letter head
parskip=half, % no parindent, but parskip
version=last % latest version of KOMA letter
]{scrlttr2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\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}{$date$}
\setkomavar{place}{$place$}
\setkomavar{subject}{$subject$}
\begin{letter}{%
$for(address)$
$address$$sep$\\
$endfor$
}
\opening{$opening$}
$body$
\closing{$closing$}
\ps $postskriptum$
$if(encludes)$
\setkomavar*{enclseparator}{Anlage}
\encl{$encludes$}
$endif$
\end{letter}
\end{document}