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.

We want to generate a document that contains parts in different languages (e.g. Dutch, French and English). The problem is that these languages have different hyphen patterns and notations (e.g. in French one writes a space before a colon).

Is there an elegant way to swap between languages, something like:

\documentclass{article}
\usepackage[dutch,english,french]{babel}
\begin{document}
\begin{english}
The list contains three items: one, two, and three.
\end{english}
\begin{dutch}
De lijst bevat drie elementen: \'e\'en, twee en drie.
\end{dutch}
\begin{french}
La liste contient trois \'el\'ements: un, deux et trois.
\end{french}
\end{document}
share|improve this question
3  
It's explained in the documentation. I don't know if this is the optimal way to do it, but you could use \begin{otherlanguage}{dutch} … \end{otherlanguage} instead of \begin{dutch} … \end{dutch}. EDIT: Although it recommends to enclose that environment in another pair of braces {…}… so there might be a better way. And, of course, you can define your own environments based upon these. –  Manuel Jun 12 at 12:29

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.