Jürgen Spitzmüller wrote: > See LyXRC.cpp: > > case RC_LANGUAGE_AUTO_BEGIN: > str = _("Select if a language switching command is needed > at the beginning of the document."); > break; > > case RC_LANGUAGE_AUTO_END: > str = _("Select if a language switching command is needed > at the end of the document."); > break;
I somewhat more clear words: If these check boxes are _not_ selected, a language begin and/or language end tag will be inserted right after \begin{document} and right before \end{document}, respectively. Only if these tags are defined, of course. Example: a.) check boxes switched on: %% LyX 1.5.2svn created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \makeatletter [EMAIL PROTECTED]/home/juergen//}} \makeatother \documentclass[ngerman]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter \usepackage{babel} \makeatother \begin{document} hallo \end{document} b.) check boxes switched off: %% LyX 1.5.2svn created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \makeatletter [EMAIL PROTECTED]/home/juergen//}} \makeatother \documentclass[ngerman]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter \usepackage{babel} \makeatother \begin{document} \selectlanguage{ngerman} %% <-------LOOK HERE. hallo \end{document} Note that the end tag is missing, since it's undefined in prefs. Jürgen