mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
* BufferParams.cpp: do not load luainputenc if inputenc has explicitly being disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37578 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1b3c9e54c5
commit
58fd91390c
@ -2494,7 +2494,9 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
|
||||
// LuaTeX neither, but with tex fonts, we need to load
|
||||
// the luainputenc package.
|
||||
if (features.runparams().flavor == OutputParams::LUATEX) {
|
||||
if (!useNonTeXFonts) {
|
||||
if (!useNonTeXFonts && inputenc != "default"
|
||||
&& ((inputenc == "auto" && language->encoding()->package() == Encoding::inputenc)
|
||||
|| (inputenc != "auto" && encoding().package() == Encoding::inputenc))) {
|
||||
os << "\\usepackage[utf8]{luainputenc}\n";
|
||||
texrow.newline();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user