mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 18:52:46 +00:00
BufferParams.cpp: fix #6714
OK also for branch? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34451 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
edd8a321bf
commit
3d91ff0e40
@ -1336,8 +1336,11 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
|||||||
// XeTeX works without fontenc
|
// XeTeX works without fontenc
|
||||||
if (font_encoding() != "default" && language->lang() != "japanese"
|
if (font_encoding() != "default" && language->lang() != "japanese"
|
||||||
&& !useXetex) {
|
&& !useXetex) {
|
||||||
|
size_t fars = language_options.str().find("farsi");
|
||||||
|
size_t arab = language_options.str().find("arabic");
|
||||||
if (language->lang() == "arabic_arabi"
|
if (language->lang() == "arabic_arabi"
|
||||||
|| language->lang() == "farsi") {
|
|| language->lang() == "farsi" || fars != string::npos
|
||||||
|
|| arab != string::npos) {
|
||||||
os << "\\usepackage[" << from_ascii(font_encoding())
|
os << "\\usepackage[" << from_ascii(font_encoding())
|
||||||
<< ",LFE,LAE]{fontenc}\n";
|
<< ",LFE,LAE]{fontenc}\n";
|
||||||
texrow.newline();
|
texrow.newline();
|
||||||
|
Loading…
Reference in New Issue
Block a user