> Actually, I do not think LyX should _ever_ output a
> \selectlanguage{latex} command. You are missing a "language !=
> latex_language" test somewhere.

Thanks JMarc. This is it. Can I apply the attached patch?

Index: src/output_latex.cpp
===================================================================
--- src/output_latex.cpp        (revision 19292)
+++ src/output_latex.cpp        (working copy)
@@ -119,6 +119,7 @@

                if ((lyxrc.language_command_end.empty() ||
                     par_language->babel() != doc_language->babel()) &&
+                    par_language->babel() != "latex" &&
                    !par_language->babel().empty()) {
                        os << from_ascii(subst(
                                lyxrc.language_command_begin,


Bo

Reply via email to