Jean-Marc Lasgouttes wrote: >>>>>> "Uwe" == Uwe Stöhr <[EMAIL PROTECTED]> writes: > >>> Uwe, I do not understand why lang_opts is passed to babel in the >>> second if() when lyxrc.language_global_options is true. What was >>> your intention? > > Uwe> When lyxrc.language_global_options is true babel is not called > Uwe> when the document language has an empty babel language. > > Note that the meaning of this variable is to decide whether the > languages should be passed as > \documentclass[options]{article} > \usepackage[lang1,lang2]{babel} > or (the default) > \documentclass[options,lang1,lang2]{article} > \usepackage{babel}
there is a third variant to prevent an option clash if another package already loads babel (same for other packages) \PassOptionsToPackage{lang1,lang2}{babel} before \documentclass Herbert