Am Donnerstag, 13. Juni 2002 11:17 schrieben Sie:
> Hello,
>
> I'm typing a french text with some citations in english.
> I'm using lyx1.1.6fix4.
>
> I therefore selected "frenchb" in lyx. I'd like to use some Babel commands
> or environemnt
> like :
>
> \begin{otherlanguage}{english}
> ...
> \end{otherlanguage}
>
> The problem here is that latex gives me an error that says that the english
> language had not been defined yet.
>
> I therefore added (from lyx) the command :
>
> \usepackage[english, french]{babel}
>
> But here latex gives me another error that says that I'm trying to redefine
> babel options and that it clashes with previuous declaration of the babel
> package.
>
> The only way I found to make it works is to export the lyx file to latex
> and then to substitute the line :
>
> \documentclass[a4paper,frenchb]{article}
>
> with
>
> \documentclass[a4paper,english,frenchb]{article}
>
> and this is quite annoying.
>
> Is there some way to do this from within lyx ?
> Is there some extra functionality in lyx 1.2.0 and fix this problem ?
>
> Thank you
>
> Francis Girard
> [EMAIL PROTECTED]
>
> _________________________________________________________________
> Téléchargez MSN Explorer gratuitement à l'adresse
> http://explorer.msn.fr/intl.asp.

Dear Francis,
I am referring to LyX 1.1.6, perhaps it is similar in 1.2.0:
Under Edit/Settings there is the point Languages, and again the point 
Language. Here you find the point Package, the default is probably 
\usepackage[english]{babel}. Change this to, for example, 
\usepackage[french,english]{babel}, or whatever language you need. The last 
language option set is the default, all other languages with their 
hyphenation patterns and specialities are loaded within the document with
\selectlanguage{french}, for example.
Do not invoke \usepackage{babel} a second time under Layout/LaTeX  preamble, 
otherwise you get the problems you mentioned.
Happy texing
Tobias

Reply via email to