diff options
author | Andrew Dunning <adunning@users.noreply.github.com> | 2019-01-23 00:13:09 -0500 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-01-22 21:13:09 -0800 |
commit | 3707bed4c1f211f5cebc22820ad6d70e36c04fcc (patch) | |
tree | 912011ea6db72c2c66833da8dfcabcf9249e91f9 /data/templates | |
parent | 3ad225571706f58b18a6799fa22511e787109253 (diff) | |
download | pandoc-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/templates')
-rw-r--r-- | data/templates/default.latex | 5 |
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)$ |