aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-05-17 16:12:53 +0200
committerAlbert Krewinkel <[email protected]>2022-05-17 16:12:53 +0200
commit9c29d840ff4e33e0925bee60fb4d9aeba968c5d0 (patch)
treedfba4c09305e1710180dde1d66037e7636bc299d /data
parent6eb77586b4f98324cde85f2a3006b45c5490e7cb (diff)
LaTeX template: fix links-as-notes
The redefinition of `\href` when using `links-as-notes` must happen after the hyperref package has been loaded. Fixes: #8077
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 44d527490..202db4f81 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -270,10 +270,6 @@ $if(graphics)$
\def\fps@figure{htbp}
\makeatother
$endif$
-$if(links-as-notes)$
-% Make links footnotes instead of hotlinks:
-\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
-$endif$
$if(strikeout)$
$-- also used for underline
\usepackage[normalem]{ulem}
@@ -378,6 +374,10 @@ $endif$
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
+$if(links-as-notes)$
+% Make links footnotes instead of hotlinks:
+\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
+$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allow verbatim text in footnotes
$endif$