Use footnotehyper rather than footnote if hyperref is used

Fixes: #11212
This commit is contained in:
Juergen Spitzmueller 2018-07-25 18:01:22 +02:00
parent ab2b5e02f9
commit f8e286b823
2 changed files with 8 additions and 1 deletions

View File

@ -318,6 +318,7 @@
\TestPackage{fontspec}
\TestPackage{footmisc}
\TestPackage{footnote}
\TestPackage{footnotehyper}
\TestPackage{forest}
\TestPackage{framed}
\TestPackage{geometry}

View File

@ -996,7 +996,6 @@ char const * simplefeatures[] = {
"todonotes",
"forest",
"varwidth",
"footnote",
"tablefootnote",
"afterpage",
"tabularx",
@ -1123,6 +1122,13 @@ string const LaTeXFeatures::getPackages() const
// The rest of these packages are somewhat more complicated
// than those above.
if (mustProvide("footnote")) {
if (isRequired("hyperref"))
packages << "\\usepackage{footnotehyper}\n";
else
packages << "\\usepackage{footnote}\n";
}
// [pdf]lscape is used to rotate longtables
if (mustProvide("lscape")) {
if (runparams_.flavor == OutputParams::LATEX