mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Use footnotehyper rather than footnote if hyperref is used
Fixes: #11212
(cherry picked from commit f8e286b823
)
This commit is contained in:
parent
5f0c20b67e
commit
29355d34d5
@ -316,6 +316,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}
|
||||||
|
@ -974,7 +974,6 @@ char const * simplefeatures[] = {
|
|||||||
"todonotes",
|
"todonotes",
|
||||||
"forest",
|
"forest",
|
||||||
"varwidth",
|
"varwidth",
|
||||||
"footnote",
|
|
||||||
"tablefootnote",
|
"tablefootnote",
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1098,6 +1097,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
|
||||||
|
@ -52,6 +52,8 @@ What's new
|
|||||||
|
|
||||||
* DOCUMENT INPUT/OUTPUT
|
* DOCUMENT INPUT/OUTPUT
|
||||||
|
|
||||||
|
- Fix footnotes in table with hyperref (bug 11212).
|
||||||
|
|
||||||
- When cloning a buffer, do not start from a parent if it is not the
|
- When cloning a buffer, do not start from a parent if it is not the
|
||||||
current master (e.g., when compiling a child alone).
|
current master (e.g., when compiling a child alone).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user