From b764fcda9f4c9dc1e25377f997841a903b6a855d Mon Sep 17 00:00:00 2001 From: Benjamin Higgins Date: Tue, 12 Oct 2021 23:21:05 +0100 Subject: [PATCH] Add support for additional details; fix tightlist --- template.tex | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/template.tex b/template.tex index cf13e0f..662a347 100644 --- a/template.tex +++ b/template.tex @@ -23,6 +23,10 @@ $endif$ % Support for pandoc's {.underline} class \newcommand{\uline}{\underline} +% Support for pandoc features that use \tightlist +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} + % https://github.com/aaronwolen/pandoc-letter/blob/b0fd7342b352ebb87aea17614ec014f68d48747f/template-letter.tex#L163 % Make links footnotes instead of hotlinks: \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} @@ -36,7 +40,7 @@ $endif$ \item\relax\color{greytext}\ignorespaces}{\unskip\unskip\endlist\end{blockquote}} \signature{$author$} -\address{$author$\\$for(return-address)$$return-address$$sep$\\$endfor$} +\address{$author$\\$for(return-address)$$return-address$$sep$\\$endfor$$if(additional-details)$\\ ~ $for(additional-details)$\\ $additional-details$$sep$$endfor$$endif$} \date{$date$} \begin{document} -- 2.38.5