Safe Haskell | None |
---|---|
Language | Haskell2010 |
The babel
package is used to write documents in languages
other than US English.
CTAN page for babel: http://ctan.org/pkg/babel.
- babel :: PackageName
- data Language
- uselanguage :: LaTeXC l => Language -> l
- data LangConf = LangConf {
- mainLang :: Language
- otherLangs :: [Language]
- uselanguageconf :: LaTeXC l => LangConf -> l
- selectlanguage :: LaTeXC l => Language -> l
- otherlanguage :: LaTeXC l => Language -> l -> l
- foreignlanguage :: LaTeXC l => Language -> l -> l
Babel package
babel :: PackageName Source #
Babel package. When writing in a single language, the simplest
way of using it is with uselanguage
.
In the preamble, use the following (if your language of choice is Spanish):
uselanguage Spanish
To see a list of available languages, check the Language
type.
Babel languages
Languages.
Bulgarian | Bulgarian. |
Brazilian | Brazilian Portuguese. |
Canadien | Canadian French. |
Czech | Czech. |
Dutch | Dutch. |
English | English. |
Finnish | Finnish. |
Francais | Parisian French. |
French | French. |
FrenchB | French. |
German | Old German. |
NGerman | New German. |
Icelandic | Icelandic. |
Italian | Italian. |
Magyar | Hungarian. |
Portuguese | Portuguese. |
Russian | Russian. |
Spanish | Spanish. |
Ukranian | Ukranian. |
uselanguage :: LaTeXC l => Language -> l Source #
Import the babel
package using a given Language
.
uselanguage l = usepackage [texy l] babel
If you are using more than one language, consider to use
uselanguageconf
.
Language configuration. You may use one with uselanguageconf
.
LangConf | |
|
uselanguageconf :: LaTeXC l => LangConf -> l Source #
Import the label
package using a given language
configuration, featuring a main language and some
others. For example:
uselanguageconf $ LangConf English [German]
This will use English as main language, and German as secondary.
Babel commands and environments
foreignlanguage :: LaTeXC l => Language -> l -> l Source #
The function foreignlanguage
takes two arguments; the second argument is a
phrase to be typeset according to the rules of the language named in its first
argument.