mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
* PDFOptions.cpp:
- omit \inputencoding changes with XeTeX/LuaTeX. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36579 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5c02ca57d4
commit
baaceb10c2
@ -177,7 +177,8 @@ int PDFOptions::writeLaTeX(OutputParams & runparams, odocstream & os,
|
|||||||
lines = int(count(opt.begin(), opt.end(), '\n'));
|
lines = int(count(opt.begin(), opt.end(), '\n'));
|
||||||
|
|
||||||
// hyperref expects utf8!
|
// hyperref expects utf8!
|
||||||
if (need_unicode && enc && enc->iconvName() != "UTF-8") {
|
if (need_unicode && enc && enc->iconvName() != "UTF-8"
|
||||||
|
&&!runparams.isFullUnicode()) {
|
||||||
os << "\\inputencoding{utf8}\n"
|
os << "\\inputencoding{utf8}\n"
|
||||||
<< setEncoding("UTF-8");
|
<< setEncoding("UTF-8");
|
||||||
++lines;
|
++lines;
|
||||||
@ -187,7 +188,8 @@ int PDFOptions::writeLaTeX(OutputParams & runparams, odocstream & os,
|
|||||||
if (!(hyperref_already_provided && hyperset.empty()))
|
if (!(hyperref_already_provided && hyperset.empty()))
|
||||||
os << from_utf8(opt);
|
os << from_utf8(opt);
|
||||||
|
|
||||||
if (need_unicode && enc && enc->iconvName() != "UTF-8") {
|
if (need_unicode && enc && enc->iconvName() != "UTF-8"
|
||||||
|
&&!runparams.isFullUnicode()) {
|
||||||
os << setEncoding(enc->iconvName())
|
os << setEncoding(enc->iconvName())
|
||||||
<< "\\inputencoding{" << from_ascii(enc->latexName()) << "}\n";
|
<< "\\inputencoding{" << from_ascii(enc->latexName()) << "}\n";
|
||||||
++lines;
|
++lines;
|
||||||
|
Loading…
Reference in New Issue
Block a user