mirror of
https://github.com/benedictdudel/pandoc-letter-din5008.git
synced 2024-08-16 10:19:49 +02:00
Merge branch 'master' into enclosure
This commit is contained in:
commit
31f26688de
3 changed files with 29 additions and 12 deletions
12
README.md
12
README.md
|
@ -30,6 +30,10 @@ address:
|
||||||
opening: Sehr geehrte Damen und Herren,
|
opening: Sehr geehrte Damen und Herren,
|
||||||
closing: Mit freundlichen Grüßen
|
closing: Mit freundlichen Grüßen
|
||||||
enclosed: Muster, Muster, Muster
|
enclosed: Muster, Muster, Muster
|
||||||
|
ps: |
|
||||||
|
\textbf{Postskriptum \today}
|
||||||
|
|
||||||
|
Noch ein Gedanke zum Schluss.
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -54,8 +58,8 @@ Before you can make use of the template you need to move the LaTeX template file
|
||||||
into Pandocs template directory:
|
into Pandocs template directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
mkdir ~/.pandoc
|
mkdir -p ~/.pandoc/templates
|
||||||
mv your-repo-path/letter.latex ~/.pandoc/templates
|
mv your-repo-path/letter.latex ~/.pandoc/templates/
|
||||||
```
|
```
|
||||||
|
|
||||||
After creating a letter written in Markdown you can compile it into PDF with the
|
After creating a letter written in Markdown you can compile it into PDF with the
|
||||||
|
@ -71,6 +75,7 @@ The following yaml variables are supported:
|
||||||
- `opening`
|
- `opening`
|
||||||
- `closing`
|
- `closing`
|
||||||
- `enclosed`
|
- `enclosed`
|
||||||
|
- `ps`
|
||||||
- `author`
|
- `author`
|
||||||
- `phone`
|
- `phone`
|
||||||
- `email`
|
- `email`
|
||||||
|
@ -78,3 +83,6 @@ The following yaml variables are supported:
|
||||||
- `subject`
|
- `subject`
|
||||||
- `return-address`
|
- `return-address`
|
||||||
- `address`
|
- `address`
|
||||||
|
|
||||||
|
If you want to add some options to the `scrlttr2` document class, you can list
|
||||||
|
them via the `letteroption` yaml variable.
|
||||||
|
|
|
@ -16,6 +16,10 @@ address:
|
||||||
opening: Sehr geehrte Damen und Herren,
|
opening: Sehr geehrte Damen und Herren,
|
||||||
closing: Mit freundlichen Grüßen
|
closing: Mit freundlichen Grüßen
|
||||||
enclosed: Muster, Muster, Muster
|
enclosed: Muster, Muster, Muster
|
||||||
|
ps: |
|
||||||
|
\textbf{Postskriptum \today}
|
||||||
|
|
||||||
|
Noch ein Gedanke zum Schluss.
|
||||||
...
|
...
|
||||||
Far far away, behind the word mountains, far from the countries
|
Far far away, behind the word mountains, far from the countries
|
||||||
Vokalia and Consonantia, there live the blind texts. Separated
|
Vokalia and Consonantia, there live the blind texts. Separated
|
||||||
|
|
25
letter.latex
25
letter.latex
|
@ -2,17 +2,20 @@
|
||||||
foldmarks=true, % print foldmarks
|
foldmarks=true, % print foldmarks
|
||||||
foldmarks=BTm, % show foldmarks top, middle, bottom
|
foldmarks=BTm, % show foldmarks top, middle, bottom
|
||||||
fromalign=right, % letter head on the right
|
fromalign=right, % letter head on the right
|
||||||
fromphone, % show phone number
|
$if(phone)$ fromphone,$endif$ % show phone number
|
||||||
fromemail, % show email
|
$if(email)$ fromemail,$endif$ % show email
|
||||||
fromlogo, % show logo in letter head
|
$if(fromlogo)$ fromlogo,$endif$ % 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}
|
]{scrlttr2}
|
||||||
|
|
||||||
\usepackage[ngerman]{babel}
|
\usepackage[ngerman]{babel}
|
||||||
\usepackage[T1]{fontenc}
|
\usepackage[T1]{fontenc}
|
||||||
\usepackage[utf8]{inputenc}
|
\usepackage[utf8]{inputenc}
|
||||||
|
|
||||||
\usepackage{parskip}
|
\usepackage{csquotes} % German quotation marks
|
||||||
|
|
||||||
\usepackage{graphics}
|
\usepackage{graphics}
|
||||||
|
|
||||||
|
@ -21,6 +24,9 @@
|
||||||
|
|
||||||
\usepackage[right]{eurosym}
|
\usepackage[right]{eurosym}
|
||||||
|
|
||||||
|
\providecommand{\tightlist}{%
|
||||||
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
||||||
|
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\setlength{\@tempskipa}{-1.2cm}%
|
\setlength{\@tempskipa}{-1.2cm}%
|
||||||
\@addtoplength{toaddrheight}{\@tempskipa}
|
\@addtoplength{toaddrheight}{\@tempskipa}
|
||||||
|
@ -42,16 +48,15 @@
|
||||||
\setkomavar{fromemail}{$email$}
|
\setkomavar{fromemail}{$email$}
|
||||||
\setkomavar{signature}{$author$}
|
\setkomavar{signature}{$author$}
|
||||||
|
|
||||||
\setkomavar{date}{$date$}
|
$if(date)$\setkomavar{date}{$date$}$endif$
|
||||||
\setkomavar{place}{$place$}
|
\setkomavar{place}{$place$}
|
||||||
|
|
||||||
\setkomavar{subject}{$subject$}
|
$if(subject)$\setkomavar{subject}{$subject$}$endif$
|
||||||
|
|
||||||
\begin{letter}{%
|
\begin{letter}{%
|
||||||
$for(address)$
|
$for(address)$
|
||||||
$address$$sep$\\
|
$address$$sep$\\
|
||||||
$endfor$
|
$endfor$}
|
||||||
}
|
|
||||||
|
|
||||||
\opening{$opening$}
|
\opening{$opening$}
|
||||||
|
|
||||||
|
@ -59,7 +64,7 @@
|
||||||
|
|
||||||
\closing{$closing$}
|
\closing{$closing$}
|
||||||
|
|
||||||
\ps $postskriptum$
|
$if(ps)$\ps $ps$$endif$
|
||||||
|
|
||||||
$if(enclosed)$
|
$if(enclosed)$
|
||||||
\setkomavar*{enclseparator}{Anlage}
|
\setkomavar*{enclseparator}{Anlage}
|
||||||
|
|
Loading…
Reference in a new issue