HaTeX-3.17.3.1: The Haskell LaTeX library.

Safe HaskellNone
LanguageHaskell2010

Text.LaTeX.Packages.Babel

Contents

Description

The babel package is used to write documents in languages other than US English.

CTAN page for babel: http://ctan.org/pkg/babel.

Synopsis

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

data Language Source #

Languages.

Constructors

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.

data LangConf Source #

Language configuration. You may use one with uselanguageconf.

Constructors

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

selectlanguage :: LaTeXC l => Language -> l Source #

Switch to a given Language.

otherlanguage :: LaTeXC l => Language -> l -> l Source #

Use a Language locally.

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.