summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVáclav Haisman <vhaisman@gmail.com>2017-05-08 12:07:01 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-08 12:07:01 +0200
commit5048be51129bd195bcbe5e1d469fb895c9d4c5f8 (patch)
tree77f5b0718572a74ceca38b643e12691b92853c97
parentcff6d2dd73492d4c24ead814fc3564503f4d5b01 (diff)
Fix links inside captions in LaTeX output with links-as-notes.
Declare our redefined `\href` robust. Fixes #3651. (#3652)
-rw-r--r--data/templates/default.latex2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 899a00aea..de55d69db 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -155,7 +155,7 @@ $if(graphics)$
$endif$
$if(links-as-notes)$
% Make links footnotes instead of hotlinks:
-\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
+\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
$endif$
$if(strikeout)$
\usepackage[normalem]{ulem}