- require the CJK package for CJK languages.
* BufferParams.cpp (writeEncodingPreamble):
- load CJK package if required.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21652
a592a061-630c-0410-9148-
cb99ea01b6c8
os << "]{inputenc}\n";
texrow.newline();
}
- if (package == Encoding::CJK) {
+ if (package == Encoding::CJK || features.mustProvide("CJK")) {
os << "\\usepackage{CJK}\n";
texrow.newline();
}
{
if (!lang->babel().empty())
UsedLanguages_.insert(lang);
+ // CJK languages do not have a babel name.
+ // They use the CJK package
+ if (lang->encoding()->package() == Encoding::CJK)
+ require("CJK");
}