From c549a2b59c6ae7bf96906067e47b643c116e0085 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 18 Jul 2023 15:27:17 +0200 Subject: [PATCH] At end of children, language needs to be reset This amends 243b0ef90c09d5 --- src/output_latex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.39.5