From: Juergen Spitzmueller Date: Tue, 18 Jul 2023 13:27:17 +0000 (+0200) Subject: At end of children, language needs to be reset X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c549a2b59c6ae7bf96906067e47b643c116e0085;p=features.git At end of children, language needs to be reset This amends 243b0ef90c09d5 --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 4dcbecd024..c18a55beda 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1303,7 +1303,9 @@ void TeXOnePar(Buffer const & buf, // Since \selectlanguage write the language to the aux file, // we need to reset the language at the end of footnote or // float. - || runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote)) + || runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote + // Same for maintext in children (see below) + || maintext)) || close_lang_switch) && (par_lang != outer_lang || (using_begin_end && style.isEnvironment()