* 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:
Jürgen Spitzmüller 2007-11-17 12:37:18 +00:00
parent 926abae753
commit fa07bad49c
2 changed files with 5 additions and 1 deletions

View File

@ -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();
}

View File

@ -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");
}