The babel package
This package manages culturally-determined
typographical (and other) rules for a wide range of languages.
A document may select a single language to be supported, or it may
select several, in which case the document may switch from one language
to another in a variety of ways. Babel uses contributed configuration
files that provide the detail of what has to be done for each language.
Included is also a set of ini files for about 200 languages..
How to implement babel
At the beginning of your LaTeX document, where the other
packages are listed, simply add the following code:
CODE
\usepackage[a-language-of-your-choice]{babel}
You can add a second language, by simply adding the
following code:
CODE
\usepackage[languageA,languageB]{babel}
with this code, the last language in the option list
will be active (i.e. languageB), and you can use the command:
CODE
\selectlanguage{languageA}
to change the active language (when the document
begins, with \begin{document}, the main language is automatically
selected). You can also add short pieces of text in another language
using the command
CODE
\foreignlanguage{languageB}{Text in another language}
Babel also offers various environments for entering
larger pieces of text in another language:
CODE
\begin{otherlanguage}{languageB}
Text in language B. This environment switches all language-related definitions,
like the language specific names for figures, tables etc. to the other language.
\end{otherlanguage}
The starred version of this environment typesets the
main text according to the rules of the other language, but keeps the
language specific string for ancillary things like figures, in the
main language of the document. The environment hyphenrules switches
only the hyphenation patterns used; it can also be used to disallow
hyphenation by using the language name 'nohyphenation' (but note
sotherlanguage* is preferred).