From 3707bed4c1f211f5cebc22820ad6d70e36c04fcc Mon Sep 17 00:00:00 2001 From: Andrew Dunning Date: Wed, 23 Jan 2019 00:13:09 -0500 Subject: 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. --- data/templates/default.latex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data') 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)$ -- cgit v1.2.3