From e354924468bf064609447555d7f621999c3ae246 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 23 Dec 2022 10:27:10 +0100 Subject: [PATCH] add support for `links` --- letter.latex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/letter.latex b/letter.latex index f72245d..dbdae83 100644 --- a/letter.latex +++ b/letter.latex @@ -9,7 +9,6 @@ $endfor$ \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} - \usepackage{csquotes} % German quotation marks \usepackage{graphics} @@ -31,6 +30,14 @@ $endfor$ \addtolength{\oddsidemargin}{-1in} \setlength{\textwidth}{\useplength{firstheadwidth}} +% Links +\usepackage{hyperref} +$if(links-as-notes)$ +% Make links footnotes instead of hotlinks: +\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} +$endif$ +% End of Links + \begin{document} \setkomavar{fromname}{$author$} \renewcommand*{\raggedsignature}{\raggedright}