mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Clarify some comments wrt XeTeX/LuaTeX (see bug #10013)
This commit is contained in:
parent
90e337c84d
commit
cd68c6afdf
@ -2123,6 +2123,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
||||
|
||||
// xunicode needs to be loaded at least after amsmath, amssymb,
|
||||
// esint and the other packages that provide special glyphs
|
||||
// The package only supports XeTeX currently.
|
||||
if (features.runparams().flavor == OutputParams::XETEX
|
||||
&& useNonTeXFonts)
|
||||
lyxpreamble += "\\usepackage{xunicode}\n";
|
||||
@ -2344,7 +2345,10 @@ string BufferParams::bufferFormat() const
|
||||
string format = documentClass().outputFormat();
|
||||
if (format == "latex") {
|
||||
if (useNonTeXFonts)
|
||||
return "xetex"; // actually "xetex or luatex"
|
||||
// FIXME: In this context, this means "xetex or luatex"
|
||||
// with fontspec. We cannot differentiate further here.
|
||||
// But maybe use a more appropriate string.
|
||||
return "xetex";
|
||||
if (encoding().package() == Encoding::japanese)
|
||||
return "platex";
|
||||
}
|
||||
|
@ -1745,7 +1745,7 @@ void GuiDocument::deleteBoxBackgroundColor()
|
||||
|
||||
void GuiDocument::languageChanged(int i)
|
||||
{
|
||||
// some languages only work with polyglossia/XeTeX
|
||||
// some languages only work with polyglossia
|
||||
Language const * lang = lyx::languages.getLanguage(
|
||||
fromqstr(langModule->languageCO->itemData(i).toString()));
|
||||
if (lang->babel().empty() && !lang->polyglossia().empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user