From 89c4aa4edef87c7e97e739e5960c81b1de3a6ed1 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 27 Jul 2017 14:04:45 +0100 Subject: [PATCH] Change how letter closes if not specified The letter will default to `Yours faithfully,` because opening defaults to `Dear Sir or Madam`. If opening is specified (assuming this is because you know the name of the person you are writing to) closing will default to `Yours Sincerely`. This behaviour can still be overidden by specifying `closing: ...` in the yaml header --- pandoc/templates/template-letter.tex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandoc/templates/template-letter.tex b/pandoc/templates/template-letter.tex index f981a5f1..f5313cfa 100644 --- a/pandoc/templates/template-letter.tex +++ b/pandoc/templates/template-letter.tex @@ -286,8 +286,12 @@ $endif$ $if(closing)$ \closing{$closing$} $else$ +$if(opening)$ +\closing{Yours sincerely,} +$else$ \closing{Yours faithfully,} $endif$ +$endif$ $if(encl)$ \encl{$for(encl)$$encl$$sep$\\$endfor$} $endif$