mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Use footnotehyper rather than footnote if hyperref is used
Fixes: #11212
This commit is contained in:
parent
ab2b5e02f9
commit
f8e286b823
@ -318,6 +318,7 @@
|
|||||||
\TestPackage{fontspec}
|
\TestPackage{fontspec}
|
||||||
\TestPackage{footmisc}
|
\TestPackage{footmisc}
|
||||||
\TestPackage{footnote}
|
\TestPackage{footnote}
|
||||||
|
\TestPackage{footnotehyper}
|
||||||
\TestPackage{forest}
|
\TestPackage{forest}
|
||||||
\TestPackage{framed}
|
\TestPackage{framed}
|
||||||
\TestPackage{geometry}
|
\TestPackage{geometry}
|
||||||
|
@ -996,7 +996,6 @@ char const * simplefeatures[] = {
|
|||||||
"todonotes",
|
"todonotes",
|
||||||
"forest",
|
"forest",
|
||||||
"varwidth",
|
"varwidth",
|
||||||
"footnote",
|
|
||||||
"tablefootnote",
|
"tablefootnote",
|
||||||
"afterpage",
|
"afterpage",
|
||||||
"tabularx",
|
"tabularx",
|
||||||
@ -1123,6 +1122,13 @@ string const LaTeXFeatures::getPackages() const
|
|||||||
// The rest of these packages are somewhat more complicated
|
// The rest of these packages are somewhat more complicated
|
||||||
// than those above.
|
// 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
|
// [pdf]lscape is used to rotate longtables
|
||||||
if (mustProvide("lscape")) {
|
if (mustProvide("lscape")) {
|
||||||
if (runparams_.flavor == OutputParams::LATEX
|
if (runparams_.flavor == OutputParams::LATEX
|
||||||
|
Loading…
Reference in New Issue
Block a user