mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
BufferParams.cpp: correct wrong previous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18859 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
31c99e6b37
commit
e077e53a13
@ -896,14 +896,16 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
||||
// set font encoding
|
||||
// this one is not per buffer
|
||||
// for Farsi we also need to load the LAE and LFE encoding
|
||||
if (lyxrc.fontenc != "default" && language->lang() == "farsi") {
|
||||
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
|
||||
<< ",LFE,LAE]{fontenc}\n";
|
||||
texrow.newline();
|
||||
} else {
|
||||
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
|
||||
<< "]{fontenc}\n";
|
||||
texrow.newline();
|
||||
if (lyxrc.fontenc != "default") {
|
||||
if (language->lang() == "farsi") {
|
||||
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
|
||||
<< ",LFE,LAE]{fontenc}\n";
|
||||
texrow.newline();
|
||||
} else {
|
||||
os << "\\usepackage[" << from_ascii(lyxrc.fontenc)
|
||||
<< "]{fontenc}\n";
|
||||
texrow.newline();
|
||||
}
|
||||
}
|
||||
|
||||
// handle inputenc etc.
|
||||
|
Loading…
Reference in New Issue
Block a user