On 2010-02-25, Manoj Rajagopalan wrote:

>    I've traced this to the use of the babel package - it seems to be 
> automatically set for use in Tools->Preferences...->Language 
> settings->Language dialog.

AFAIK, babel is loaded by default if you use any Language other than
English (US), be it as document language or for text parts.

> What I find strange is that LyX seems to be introducing the
> \selectlanguage and \foreignlanguage commands in what appears to be a
> random fashion. 

Normally not.

> When I create a new equation-reference, I get something
> like:

>   \eqref{\selectlanguage{british}eq:myequation\selectlanguage{english}}

This might be a bug (but see below).

> How does the "british" language enter my document - the default is
> probably just "English" on my system. Even my \documentclass command
> (on latex export) shows the british option!

The most comman source of this kind of problems is copy and
paste from a document in another language as the language attribute is
preserved.

Another bug is that, if you select a document part containing an inset
resetting the language is not (always) done inside the inset. Instead,
you have to go into the inset, mark the content and repeat the language
reset command :-( Combine this with the feature that the blue underline
will be not visible for the closed inset, you see the source of much
confusion.

Günter

Reply via email to