Tuesday, April 15, 2008

Mixed French, German & English LaTeX

Unicode characters enter easily into any LaTeX document using inputenc correctly. But different languages style and space punctuation and other typographic elements differently. The LaTeX babel package and the \selectlanguage command account for typographic differences between languages.

\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[german, french, english]{babel}

\begin{document}
\begin{enumerate}
\item \selectlanguage{english} Taken together ...
\item \selectlanguage{french} Cette combinaison ...
\item \selectlanguage{german}Zusammen ...
\end{enumerate}
\end{document}




So multilingual LaTeX documents require two things. The LaTeX inputenc and babel packages. And repeated calls to the \selectlanguage command inline.

No comments: