I have a document written in British English and I am using \usepackage[british]{babel} in the preamble; however, this same document also has an abstract written in a different language, whose hyphenation is of course all wrong.

Is there any way to specify something akin to \usepackage[british]{babel}, but just inside a chapter?

  • 4
    The package allows to activate another language within the document by commands like \selectlanguage{…} or \foreignlanguage{…}{short text}. – Thorsten Donig Jun 17 '11 at 10:02
  • 2
    Have a look at this question tex.stackexchange.com/q/1177/3240 – Thorsten Jun 17 '11 at 10:03
  • 2
    Welcome to tex.sx! You can format the LaTeX code by enclosing it in ``, e.g. \LaTeX. – N.N. Jun 17 '11 at 10:26
  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count. This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). – N.N. Jul 1 '11 at 12:25

Just load the other languages you need with the babel package putting the main language last and then you switch between the languages via \begin{otherlanguage} ... \end{otherlanguage}, \selectlanguage{language} or \foreignlanguage{language}{text} (like Thorsten Donig and egreg suggested). Here is an example:





\tableofcontents% This is just to show that the the ToC title is in British

  • 5
    It's better to enclose the French part in the otherlanguage environment: \begin{otherlanguage}{french}\begin{abstract}...\end{abstract}\end{otherlanguage}, so the main language will be restored automatically. – egreg Jun 17 '11 at 12:39
  • @egreg True, thanks. Edited my answer to fix this. – N.N. Jun 17 '11 at 12:52
  • 3
    Note that this will change the automatic LaTeX labels, too, i.e. instead of "Abstract" it'll say "Résumé". To get the English title, switch the order in which the environments are begun: \begin{abstract}\begin{otherlanguage}{french}...\end{otherlanguage}\end{abstract} – doncherry Jun 17 '11 at 18:52
  • 5
    @doncherry \begin{otherlanguage*} doesn't change the fixed words, so I'd prefer to use this environment rather than changing the order. – egreg Nov 6 '12 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.