mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +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'));
|
||||
|
||||
// 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"
|
||||
<< setEncoding("UTF-8");
|
||||
++lines;
|
||||
@ -187,7 +188,8 @@ int PDFOptions::writeLaTeX(OutputParams & runparams, odocstream & os,
|
||||
if (!(hyperref_already_provided && hyperset.empty()))
|
||||
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())
|
||||
<< "\\inputencoding{" << from_ascii(enc->latexName()) << "}\n";
|
||||
++lines;
|
||||
|
Loading…
Reference in New Issue
Block a user