mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
* output_latex:cpp:
- fix some CJK nesting issues. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27665 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
09738dbba4
commit
17e11a930d
@ -180,6 +180,7 @@ TeXEnvironment(Buffer const & buf,
|
||||
bool cjk_nested = false;
|
||||
if (par_language->encoding()->package() == Encoding::CJK &&
|
||||
open_encoding_ != CJK && pit->isMultiLingual(bparams)) {
|
||||
if (prev_par_language->encoding()->package() == Encoding::CJK)
|
||||
os << "\\begin{CJK}{" << from_ascii(par_language->encoding()->latexName())
|
||||
<< "}{" << from_ascii(bparams.fontsCJK) << "}%\n";
|
||||
open_encoding_ = CJK;
|
||||
@ -658,8 +659,8 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf,
|
||||
if (nextpit != paragraphs.end() && open_encoding_ == CJK &&
|
||||
(nextpit->getParLanguage(bparams)->encoding()->package() != Encoding::CJK ||
|
||||
nextpit->layout().isEnvironment() && nextpit->isMultiLingual(bparams))
|
||||
// in environments, CJK has to be closed later (nesting!)
|
||||
&& !style.isEnvironment()) {
|
||||
// inbetween environments, CJK has to be closed later (nesting!)
|
||||
&& (!style.isEnvironment() || !nextpit->layout().isEnvironment())) {
|
||||
os << "\\end{CJK}\n";
|
||||
open_encoding_ = none;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user