mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
* BufferParams.cpp:
- move loading of the xetex packages xunicode and xltxtra to the end of the preamble Now the UserGuide compiles with XeTeX! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29120 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
737e9b2c20
commit
ca6d526ba1
@ -1089,10 +1089,6 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
||||
if (useXetex) {
|
||||
os << "\\usepackage{fontspec}\n";
|
||||
texrow.newline();
|
||||
os << "\\usepackage{xunicode}\n";
|
||||
texrow.newline();
|
||||
os << "\\usepackage{xltxtra}\n";
|
||||
texrow.newline();
|
||||
}
|
||||
|
||||
// font selection must be done before loading fontenc.sty
|
||||
@ -1453,6 +1449,16 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
||||
}
|
||||
|
||||
os << lyxpreamble;
|
||||
|
||||
// these packages (xunicode, for that matter) need to be loaded at least
|
||||
// after amsmath, amssymb, esint and the other packages that provide
|
||||
// special glyphs
|
||||
if (useXetex) {
|
||||
os << "\\usepackage{xunicode}\n";
|
||||
texrow.newline();
|
||||
os << "\\usepackage{xltxtra}\n";
|
||||
texrow.newline();
|
||||
}
|
||||
return use_babel;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user