mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* LaTeXFeatures.cpp (useLanguage):
- 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
This commit is contained in:
parent
926abae753
commit
fa07bad49c
@ -1620,7 +1620,7 @@ void BufferParams::writeEncodingPreamble(odocstream & os,
|
||||
os << "]{inputenc}\n";
|
||||
texrow.newline();
|
||||
}
|
||||
if (package == Encoding::CJK) {
|
||||
if (package == Encoding::CJK || features.mustProvide("CJK")) {
|
||||
os << "\\usepackage{CJK}\n";
|
||||
texrow.newline();
|
||||
}
|
||||
|
@ -354,6 +354,10 @@ void LaTeXFeatures::useLanguage(Language const * lang)
|
||||
{
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user