From 5c4e78675fff5fdb81a0bfe52b99bb76435e37a3 Mon Sep 17 00:00:00 2001 From: Richard Vogel Date: Wed, 21 Feb 2018 09:45:28 +0100 Subject: [PATCH 01/11] Add possibility to use unordered lists --- letter.latex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/letter.latex b/letter.latex index 5afc6e7..034a03a 100644 --- a/letter.latex +++ b/letter.latex @@ -21,6 +21,9 @@ \usepackage[right]{eurosym} +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + \makeatletter \setlength{\@tempskipa}{-1.2cm}% \@addtoplength{toaddrheight}{\@tempskipa} From fa78474de91e32f0785641669e825ddb4847254c Mon Sep 17 00:00:00 2001 From: Paul Woitaschek Date: Thu, 19 Jul 2018 15:48:06 +0200 Subject: [PATCH 02/11] Create the templates directory recursively. Move into that directory. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fa00caa..8ed9fbd 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,8 @@ Before you can make use of the template you need to move the LaTeX template file into Pandocs template directory: ``` -mkdir ~/.pandoc -mv your-repo-path/letter.latex ~/.pandoc/templates +mkdir -p ~/.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 From 306886738652c65acb8acd32ace22e1747d15d93 Mon Sep 17 00:00:00 2001 From: Sebastian Sauer Date: Tue, 4 Sep 2018 12:34:07 +0200 Subject: [PATCH 03/11] Enable German quatation marks --- letter.latex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/letter.latex b/letter.latex index 5afc6e7..871d990 100644 --- a/letter.latex +++ b/letter.latex @@ -14,6 +14,8 @@ \usepackage{parskip} +\usepackage{csquotes} % German quotation marks + \usepackage{graphics} \usepackage{booktabs} From ab4ec36ed75e553b96562d56ab3e570220490437 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sat, 24 Aug 2019 19:31:39 +0200 Subject: [PATCH 04/11] Optionalize some variables. Add 'letteroption' for additional options, e.g., .lco files, for the 'scrlttr2' documentclass. Make 'date' optional and '\today' the default. Make 'postskriptum' optional. --- letter.latex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/letter.latex b/letter.latex index 5afc6e7..7182428 100644 --- a/letter.latex +++ b/letter.latex @@ -5,7 +5,10 @@ fromphone, % show phone number fromemail, % show email fromlogo, % 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} \usepackage[ngerman]{babel} @@ -42,10 +45,10 @@ \setkomavar{fromemail}{$email$} \setkomavar{signature}{$author$} - \setkomavar{date}{$date$} + \setkomavar{date}{$if(date)$$date$$else$\today$endif$} \setkomavar{place}{$place$} - \setkomavar{subject}{$subject$} + $if(subject)$\setkomavar{subject}{$subject$}$endif$ \begin{letter}{% $for(address)$ @@ -59,7 +62,7 @@ \closing{$closing$} - \ps $postskriptum$ + $if(postskriptum)$\ps $postskriptum$$endif$ $if(encludes)$ \setkomavar*{enclseparator}{Anlage} From f6753d28cd231dd16d91dac97559362d3cc92f9a Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 15 Sep 2019 11:03:11 +0200 Subject: [PATCH 05/11] Optionalize class options. Not every user has an email address to show. --- letter.latex | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/letter.latex b/letter.latex index 7182428..3c19ad3 100644 --- a/letter.latex +++ b/letter.latex @@ -2,9 +2,9 @@ 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 + $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$, @@ -53,8 +53,7 @@ $endfor$ \begin{letter}{% $for(address)$ $address$$sep$\\ - $endfor$ - } + $endfor$} \opening{$opening$} From 01ba99c99adaba3d9c2e5842b28342196071d5b0 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Tue, 17 Sep 2019 11:04:20 +0200 Subject: [PATCH 06/11] Fix whitespace. --- letter.latex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/letter.latex b/letter.latex index 3c19ad3..934682a 100644 --- a/letter.latex +++ b/letter.latex @@ -2,9 +2,9 @@ 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 +$if(phone)$ fromphone, % show phone number$endif$ +$if(fromemail)$ fromemail, % show email$endif$ +$if(fromlogo)$ fromlogo, % show logo in letter head$endif$ version=last, % latest version of KOMA letter $for(letteroption)$ $letteroption$$sep$, From 97979960214ddc648c4ac07e559ed5bbdc9b3bc8 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Wed, 25 Sep 2019 15:13:26 +0200 Subject: [PATCH 07/11] LaTeX does not permit empty lines in option section. --- letter.latex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/letter.latex b/letter.latex index 934682a..5283488 100644 --- a/letter.latex +++ b/letter.latex @@ -2,9 +2,9 @@ foldmarks=true, % print foldmarks foldmarks=BTm, % show foldmarks top, middle, bottom fromalign=right, % letter head on the right -$if(phone)$ fromphone, % show phone number$endif$ -$if(fromemail)$ fromemail, % show email$endif$ -$if(fromlogo)$ fromlogo, % show logo in letter head$endif$ +$if(phone)$ fromphone,$endif$ % show phone number +$if(email)$ fromemail,$endif$ % show email +$if(fromlogo)$ fromlogo,$endif$ % show logo in letter head version=last, % latest version of KOMA letter $for(letteroption)$ $letteroption$$sep$, From ade5e7ff1ac46ec436bd20851f80b3a9931dbe12 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 20 Oct 2019 14:07:38 +0200 Subject: [PATCH 08/11] =?UTF-8?q?K=C3=BCrze=20Postskriptum=20Tag.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alles andere Tags sind in English (das wäre dann 'postscriptum') und das lange Wort ist unnötig lang. --- example/letter.md | 4 ++++ letter.latex | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/example/letter.md b/example/letter.md index fe36a18..05982fa 100644 --- a/example/letter.md +++ b/example/letter.md @@ -16,6 +16,10 @@ address: opening: Sehr geehrte Damen und Herren, closing: Mit freundlichen Grüßen encludes: Muster, Muster, Muster +ps: | + \textbf{Postskriptum \today} + + Noch ein Gedanke zum Schluss. ... Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated diff --git a/letter.latex b/letter.latex index 5afc6e7..6d92c88 100644 --- a/letter.latex +++ b/letter.latex @@ -59,7 +59,7 @@ \closing{$closing$} - \ps $postskriptum$ + \ps $ps$ $if(encludes)$ \setkomavar*{enclseparator}{Anlage} From fc4c39593aa534d9f7dbdccc432e23e4785b57d3 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 20 Oct 2019 17:56:10 +0200 Subject: [PATCH 09/11] Update readme file. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index fa00caa..cc186bd 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,10 @@ address: opening: Sehr geehrte Damen und Herren, closing: Mit freundlichen Grüßen encludes: Muster, Muster, Muster +ps: | + \textbf{Postskriptum \today} + + Noch ein Gedanke zum Schluss. ... ``` @@ -71,6 +75,7 @@ The following yaml variables are supported: - `opening` - `closing` - `encludes` +- `ps` - `author` - `phone` - `email` From 688adb0c583edc093f41e3c012f435e2ba3d3369 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 20 Oct 2019 17:59:21 +0200 Subject: [PATCH 10/11] Update readme file. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index fa00caa..727dbf9 100644 --- a/README.md +++ b/README.md @@ -78,3 +78,6 @@ The following yaml variables are supported: - `subject` - `return-address` - `address` + +If you want to add some options to the `scrlttr2` document class, you can list +them via the `letteroption` yaml variable. From de881bdf73f4f8193f74df70b3b5f5e944277df3 Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 27 Oct 2019 11:10:10 +0100 Subject: [PATCH 11/11] Use KOMA default for 'date'. If not set, KOMA's 'date' is set to '\today'. --- letter.latex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letter.latex b/letter.latex index 5283488..c3dc6de 100644 --- a/letter.latex +++ b/letter.latex @@ -45,7 +45,7 @@ $endfor$ \setkomavar{fromemail}{$email$} \setkomavar{signature}{$author$} - \setkomavar{date}{$if(date)$$date$$else$\today$endif$} + $if(date)$\setkomavar{date}{$date$}$endif$ \setkomavar{place}{$place$} $if(subject)$\setkomavar{subject}{$subject$}$endif$