aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAndrew Dunning <adunning@users.noreply.github.com>2019-01-23 00:13:09 -0500
committerJohn MacFarlane <jgm@berkeley.edu>2019-01-22 21:13:09 -0800
commit3707bed4c1f211f5cebc22820ad6d70e36c04fcc (patch)
tree912011ea6db72c2c66833da8dfcabcf9249e91f9 /data
parent3ad225571706f58b18a6799fa22511e787109253 (diff)
downloadpandoc-3707bed4c1f211f5cebc22820ad6d70e36c04fcc.tar.gz
LaTeX template: Use `footnotehyper` if available (#5234)
Use the [`footnotehyper`](https://ctan.org/pkg/footnotehyper/) package if available. This is a rewrite of `footnote` that is compatible with `hyperref` and `babel-frenchb`. This patch also addresses the incompatibility with `xcolor` noted in #4861, but the new package has only been available since 2016, so this template still loads `xcolor` earlier for compatibility with older distributions. Note that the `footnote` package is part of `collection-latexrecommended` in TeX Live, so there shouldn't be any problem loading it unconditionally as we now do if `footnotehyper` is not available.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index f76f25ca5..f37af0a2a 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -247,8 +247,9 @@ $if(beamer)$
\def\fnum@table{\tablename~\thetable}
\makeatother
$else$
-% Fix footnotes in tables (requires footnote package)
-\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
+% Allow footnotes in longtable head/foot
+\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
+\makesavenoteenv{longtable}
$endif$
$endif$
$if(graphics)$