Re: Multilingual Babel in LyX
Dear Tobias, Dear all Thank you very much for your answer. Your solution works in the following way : I set the Edit/Settings/Languages/Language/Package entry to : \usepackage[english,french]{babel} and Format/Language/Language to french and add : \selectlanguage{french} in the document before the title (it won't work if I put in the preamble). --- Now one may wonder why the \selectlanguage{french} has to be used since the \usepackage[english,french]{babel} should automatically set the defualt language to french, which is not the case. I investigated and found out that LyX will produce the following latex code : %% LyX 1.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[a4paper,french]{article} \usepackage{palatino} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[english,french]{babel} \makeatletter %% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} %% User specified LaTeX commands. \makeatother \begin{document} \selectlanguage{french} %%etc. If I modify the line line : \documentclass[a4paper,french]{article} for : \documentclass[a4paper]{article} and remove the line \selectlanguage{french}, it will also work (the french language will be selected by default). Why ? Thank you Francis Girard [EMAIL PROTECTED] From: [EMAIL PROTECTED] (Tobias Hilbricht) To: Francis Girard [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Multilingual Babel in LyX Date: Thu, 13 Jun 2002 20:58:26 +0200 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 _ Envoyez et recevez des messages Hotmail sur votre périphérique mobile : http://mobile.msn.com
Re: Multilingual Babel in LyX
Francis == Francis Girard [EMAIL PROTECTED] writes: Francis Hello, Francis I'm typing a french text with some citations in english. I'm Francis using lyx1.1.6fix4. Francis I therefore selected frenchb in lyx. I'd like to use some Francis Babel commands or environemnt like : Francis \begin{otherlanguage}{english} ... \end{otherlanguage} Maybe I do not understand you problem, but why don't use select your english text, go to LayoutCharacters and change language to english? JMarc
Re: Multilingual Babel in LyX
Dear Tobias, Dear all Thank you very much for your answer. Your solution works in the following way : I set the Edit/Settings/Languages/Language/Package entry to : \usepackage[english,french]{babel} and Format/Language/Language to french and add : \selectlanguage{french} in the document before the title (it won't work if I put in the preamble). --- Now one may wonder why the \selectlanguage{french} has to be used since the \usepackage[english,french]{babel} should automatically set the defualt language to french, which is not the case. I investigated and found out that LyX will produce the following latex code : %% LyX 1.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[a4paper,french]{article} \usepackage{palatino} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[english,french]{babel} \makeatletter %% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} %% User specified LaTeX commands. \makeatother \begin{document} \selectlanguage{french} %%etc. If I modify the line line : \documentclass[a4paper,french]{article} for : \documentclass[a4paper]{article} and remove the line \selectlanguage{french}, it will also work (the french language will be selected by default). Why ? Thank you Francis Girard [EMAIL PROTECTED] From: [EMAIL PROTECTED] (Tobias Hilbricht) To: Francis Girard [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Multilingual Babel in LyX Date: Thu, 13 Jun 2002 20:58:26 +0200 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 _ Envoyez et recevez des messages Hotmail sur votre périphérique mobile : http://mobile.msn.com
Re: Multilingual Babel in LyX
Francis == Francis Girard [EMAIL PROTECTED] writes: Francis Hello, Francis I'm typing a french text with some citations in english. I'm Francis using lyx1.1.6fix4. Francis I therefore selected frenchb in lyx. I'd like to use some Francis Babel commands or environemnt like : Francis \begin{otherlanguage}{english} ... \end{otherlanguage} Maybe I do not understand you problem, but why don't use select your english text, go to LayoutCharacters and change language to english? JMarc
Re: Multilingual Babel in LyX
Dear Tobias, Dear all Thank you very much for your answer. Your solution works in the following way : I set the Edit/Settings/Languages/Language/Package entry to : \usepackage[english,french]{babel} and Format/Language/Language to french and add : \selectlanguage{french} in the document before the title (it won't work if I put in the preamble). --- Now one may wonder why the \selectlanguage{french} has to be used since the \usepackage[english,french]{babel} should automatically set the defualt language to french, which is not the case. I investigated and found out that LyX will produce the following latex code : %% LyX 1.1 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[a4paper,french]{article} \usepackage{palatino} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[english,french]{babel} \makeatletter %% LyX specific LaTeX commands. \providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@} %% User specified LaTeX commands. \makeatother \begin{document} \selectlanguage{french} %%etc. If I modify the line line : \documentclass[a4paper,french]{article} for : \documentclass[a4paper]{article} and remove the line \selectlanguage{french}, it will also work (the french language will be selected by default). Why ? Thank you Francis Girard [EMAIL PROTECTED] >From: [EMAIL PROTECTED] (Tobias Hilbricht) >To: "Francis Girard" <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: Multilingual Babel in LyX >Date: Thu, 13 Jun 2002 20:58:26 +0200 > >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 _ Envoyez et recevez des messages Hotmail sur votre périphérique mobile : http://mobile.msn.com
Re: Multilingual Babel in LyX
> "Francis" == Francis Girard <[EMAIL PROTECTED]> writes: Francis> Hello, Francis> I'm typing a french text with some citations in english. I'm Francis> using lyx1.1.6fix4. Francis> I therefore selected "frenchb" in lyx. I'd like to use some Francis> Babel commands or environemnt like : Francis> \begin{otherlanguage}{english} ... \end{otherlanguage} Maybe I do not understand you problem, but why don't use select your english text, go to Layout>Characters and change language to english? JMarc
Multilingual Babel in LyX
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.
Re: Multilingual Babel in LyX
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
Multilingual Babel in LyX
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.
Re: Multilingual Babel in LyX
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
Multilingual Babel in LyX
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.
Re: Multilingual Babel in LyX
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