|
[PostScript, pdf, and DVI versions of this document are available, as is a sample source file that you can play with.]
The solution is to use the `Babel' package.
[Of course, the package also works where a whole document is being written in a language other than English, and you want to change the script, hyphenation patterns, date string, etc. But you probably know that anyway.]
L1
, L2
, ..., Ln
are the
languages you need), Ln
will be the default language:
\usepackage[L1,L2,...,Ln]{babel}For example, this document is mainly English, but with bits of German, Greek, French, Italian, Welsh, and Greek:
\usepackage[german,french,italian,welsh,greek,english]{babel}
You change from one language to another using:
\selectlanguage{L}For example, to switch to German, use:
\selectlanguage{german}
The following shows the same input text in various language contexts.
You will see that sometimes not much changes apart from the way the
date is realized, and the names for chapters, and so on; sometimes
the meaning of some of the input characters change (in German,
"s
is realized as ß, and "a
produces ä) and
sometimes (as in Greek) almost everything is different. Some different
language packages provide special commands.
These examples are just to give you a feeling for what is possible. They do not show anything like the full range of possibilities. For more information see, [GMS94] Ch9.
The input text is in every case the following:
ABCDEFGHIJKLMNOPQRSTUVWXYZ \\ % Upper case letters abcdefghijklmnopqrstuvwxyz\\ % lower case letters "a "s\\ % a couple of special letters \figurename \\ % name attached to figures \tablename \\ % name attached to figures \chaptername \\ % name attached to tables \refname \\ % name of the `References' section \today \\ % today's date