mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
BufferParams.cpp: fix bug #6813
- varioref needs to be loaded after babel to know what languages it has to use
This commit is contained in:
parent
70815aa34a
commit
6d4cde435d
@ -1763,10 +1763,12 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
||||
// http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144349.html
|
||||
lyxpreamble += from_ascii(features.getColorOptions());
|
||||
|
||||
// If we use hyperref, jurabib, japanese, or vietnamese, we have to call babel before them.
|
||||
// If we use hyperref, jurabib, japanese, varioref or vietnamese,
|
||||
// we have to call babel before
|
||||
if (use_babel
|
||||
&& (features.isRequired("jurabib")
|
||||
|| features.isRequired("hyperref")
|
||||
|| features.isRequired("varioref")
|
||||
|| features.isRequired("vietnamese")
|
||||
|| features.isRequired("japanese"))) {
|
||||
// FIXME UNICODE
|
||||
@ -1925,9 +1927,10 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
||||
+ atlyxpreamble + "\\makeatother\n\n";
|
||||
|
||||
// We try to load babel late, in case it interferes with other packages.
|
||||
// Jurabib and Hyperref have to be called after babel, though.
|
||||
// Jurabib, hyperref and varioref have to be called after babel, though.
|
||||
if (use_babel && !features.isRequired("jurabib")
|
||||
&& !features.isRequired("hyperref")
|
||||
&& !features.isRequired("varioref")
|
||||
&& !features.isRequired("vietnamese")
|
||||
&& !features.isRequired("japanese")) {
|
||||
// FIXME UNICODE
|
||||
|
Loading…
Reference in New Issue
Block a user