Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Currently, I write a report in LaTeX. Everything goes well except a small problem that bothers me really. The report is written in English except for a summary in French that has to be written in French, for this reason I have imported the \usepackage[french, english]{babel}.

By creating the table of Contents with the command \tableofcontents, the generated document shows Table des Matières instead of Table of Contents. It translated the phrase into French!

The packages I used:

\documentclass[english]{report}
\usepackage[latin1]{inputenc}
\usepackage{epstopdf}
\usepackage{amssymb}
\usepackage{url}
\usepackage{float}
\usepackage[colorlinks,breaklinks]{hyperref}
\usepackage[acronym]{glossaries}
\usepackage{algorithm}
\usepackage{minitoc}
\usepackage[toc,page]{appendix}
\usepackage{afterpage} %
\usepackage{microtype} % makes pdf look better
\usepackage[caption=false]{subfig}
\usepackage[french,english]{babel}
share|improve this question
    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner May 16 '12 at 16:26
add comment

migrated from stackoverflow.com May 16 '12 at 13:03

This question came from our site for professional and enthusiast programmers.

2 Answers

Just after \begin{document} put \selectlanguage{english}; then switch back to French just before the French part of the text: \selectlanguage{french}.

share|improve this answer
add comment

See this description of the babel package.

Just after \begin{document} switch to english with

\selectlanguage{english}

This will create a Table of Contents, not a Table des Matières.

Then, just before your summary in french, add

\selectlanguage{french}

And just after it, switch back to english

\selectlanguage{english}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.