{babel} is a package that manages culturally-determined typographical (and other) rules, and hyphenation patterns for a wide range of languages.

learn more… | top users | synonyms

38
votes
2answers
6k views

What's the benefit of loading babel when writing in English?

When writing in English what is the benefit of loading babel, by \usepackage[english]{babel}, except for the possibility of setting it to use specific English dialects as described in babel: english, ...
33
votes
1answer
4k views

Test if a package (or package option) is loaded

[french]{babel} (aka frenchb) is incompatible with some other packages, such as tikz, since it tries to insert \thinspace before semi-colons. In order to make these two play nice, you have to call ...
29
votes
3answers
17k views

Package babel Error: Unknown option `francais'

I recently updated my Operating system from Ubuntu 13.04 to Ubuntu 13.10. Since then, I am facing difficulties compiling my tex code in which the french babel package is called. Please note that all ...
27
votes
4answers
29k views

babel: english, american, USenglish

Does it make any difference (and if so, which) whether I use english, american, or USenglish as the option for the babel package? I've already looked into the package description, and it seems to be ...
22
votes
3answers
14k views

No hyphenation patterns were loaded for the language

I'm using babel package for spanish language. However, each time I compile my document, the package babel throws me a warning: Package babel Warning: No hyphenation patterns were loaded for (babel) ...
22
votes
1answer
510 views

How to automatically adjust the emdash length according to current language?

In Russian typography the emdash, which is typed as the ligature --- in LaTeX, is 20% shorter than the standard emdash. The babel package cares this difference so that --- prints a shorter emdash if ...
20
votes
1answer
554 views

Why does babel not work in Tikz?

Adding child nodes to child nodes in TikZ Mindmap has some example code, where German words are not hyphenated correctly. I was trying to fix it by using inputenc (for Umlaute) and ...
20
votes
1answer
233 views

Hyphenating words with archaic spellings

I often work with texts from the 17- to 1800s that (in addition to now obsolete words) contain familiar words in slightly different spelling. The language of these texts, and of the ones I'm writing, ...
19
votes
4answers
9k views

LaTeX Hyphenation

Could you please guide me to load the Oxford Dictionary in LaTeX? I am using MikTeX 2.5 with \usepackage[english]{babel}. Yes, I need to load the Oxford Dictionary hyphenation patterns in LaTeX.
19
votes
2answers
13k views

How to change the title of ToC?

I need to change default title of ToC. Is it possible with titlesec package? Here is my MWE: \documentclass{book} \usepackage{titlesec} ...
19
votes
2answers
1k views

babel: Adding ngerman' s language shorthands to english as the main document language

The (n)german language option of the babel package provides various shorthands related to hyphenation, e.g. "-: "an explicit hyphen sign, allowing hyphenation in the rest of the word" (manual, section ...
19
votes
2answers
2k views

Polyglossia vs Babel

Could someone summarize features which are (1) common and (2) different for the babel and polyglossia packages? I know that babel 3.8 (current version) fails to run for some languages (eg, Russian) ...
18
votes
3answers
5k views

What's the difference between ngerman and german in babel?

I use the following three packages to get correct German umlauts in the generated PDF: \usepackage[utf8]{inputenc} % this is needed for umlauts \usepackage[ngerman]{babel} % this is needed for ...
17
votes
6answers
1k views

\tableofcontents encoding issue with lualatex

I have a issue when trying to generate table of contents with lualatex in russian. Following example fails to build with ! Undefined control sequence. \contentsname ->{\cyr \CYRS \cyro \cyrd \cyre ...
16
votes
2answers
287 views

Why does \usepackage[british]{babel} change the hyphenation to wrong?

Now I know there are hyphenation differences between British and American English but in no dictionary, British or American, could I find the word "alternate" to be broken down to al·tern·ate instead ...
16
votes
1answer
636 views

babel shorthand "| doesn't work in macros

The package babel with the ngerman option (and most other languages as well, but not english) provides the shorthand "|, which prevents a ligature at the given position (see p. 81 of the babel ...
16
votes
1answer
190 views

Write a package that is aware of the mainlanguage selected in babel or polyglossia

How can I make my package aware of the language choosen with babel or polyglossia, so that some auto-generated strings can be generated in respect to the current language? As an example, I have a ...
15
votes
4answers
2k views

biblatex: Switching languages for *citations* according to the bibentry's “hyphenation” field

Quoting from section 3.1.2.1 of the biblatex manual: [The babel] option controls which language environment is used if the babel package is loaded and a bibliography entry includes a ...
15
votes
1answer
131 views

Should babel package call be placed at the end of the preamble?

I remember to have read few year ago1 that babel line2 should be placed at the end of the preamble in order to avoid problems with other packages. (I believe hyperref package should also be placed at ...
15
votes
1answer
166 views

Faroese language package

I am working on a project in faroese, where I need to use the localization features offered by babel. I cannot find a faroese babel package, and when searching for it, there seems to be some ...
14
votes
4answers
687 views

tikz declare function and babel french option

I would like to declare functions in tikz for multiple uses of the same function within the code. Sadly, it seems that the tikz "declare function" is not compatible with the french option in babel. ...
14
votes
2answers
213 views

Extra space behind month for \today with \usepackage[norsk]{babel} in December

When using \today and \usepackage[norsk]{babel} (babel <v3.8l>) in December there is an extra space behind the month name. How do I get around this? \documentclass{article} ...
14
votes
1answer
908 views

How can I make AUCTeX use the spelling dictionary in the same language as babel is loaded with?

Is it possible to setup AUCTeX so that it loads the spelling dictionary in the same language as the language used by babel? For example, is it possible to load the Danish ispell dictionary when a ...
14
votes
1answer
153 views

Using babel and cleveref causes unnecessary horizontal space in header

Update This bug has been fixed with version 0.18.9 of cleveref, which is currently on ctan. Question Babel and cleveref do not seem to work flawlessy together when they share the same language ...
14
votes
3answers
644 views

hyperref links break with babel + hebrew (or right-to-left language)

It's time for Eyal's babel + Hebrew incompatibility of the week. And this time: hyperref... :-( Basically, you can't get links with right-to-left text. It's about the direction rather than the ...
13
votes
4answers
5k views

Typesetting a document using Arabic script

I'm using TeXlive (2009-7) on Ubuntu 10.04. I've installed texlive-lang-arabic and I can't find out how should I compose the preamble to be able to use it. The babel's documentation I've found in the ...
13
votes
2answers
616 views

Slovak (and Czech) babel gives problems with cmidrule and cline

I tried to use the Slovak language with the booktabs package. Let's see a couple of cases. slovak is included in the options to babel \usepackage[english,slovak]{babel} or ...
13
votes
2answers
2k views

Babel and the decimal separator

I'm using Babel for writing a document in spanish. However, it uses a comma instead of a period as a decimal marker (i.e. 3,14 instead of 3.14). Is there any way to reverse the behaviour? I prefer ...
13
votes
2answers
774 views

Multilingual class/style file?

I'm writing some templates and class files that need to use some strings of text, say names for theorems, lemmas, etc., and I would like to provide the ability to easily switch the language in which ...
13
votes
1answer
161 views

Hyphenation exceptions not loaded when using babel with multiple languages

When I use babel with more than one language loaded, my hyphenation exceptions are not used. Here is an example: ====== hy.tex ======= \hyphenation{para-dichloro-diphenyl-trichloro-ethane} ====== ...
12
votes
3answers
1k views

Catalan language “ela geminada”

The language setting for my document is Catalan babel. The Catalan alphabet includes a letter called ela geminada, spelled with two lower-case l separated by the interpunct · (i.e. "cel·la" or ...
12
votes
2answers
3k views

babel with russian and english language

I need to use Russian in my article, but the default language has to be English. How do I do this? I use: \usepackage[russian]{babel} Result: all chapter names and date are in Russian. Change ...
12
votes
3answers
281 views

Why does the package babel[french] destroy \@for loops?

Why does this minimal example code: \documentclass{article} \usepackage[francais]{babel} \begin{document} \def\names{Toto,Titi,Tete,Tutu} \makeatletter \@for\next:=\names\do{\textbf{\next} } ...
12
votes
2answers
477 views

Nonbreaking dash that allows hyphenation

The babel package provides useful dash variants, e.g. "~ for a non-breaking dash that forbids hyphenation in the parts, and "= for a breaking dash that allows hyphenation in the parts. However, ...
12
votes
1answer
6k views

Change Language in \usepackage[<language>]{babel}?

I've been trying to change the language of my LaTeX document by replacing \usepackage[swedish]{babel} with \usepackage[english]{babel} but I only get this message: ! Package babel Error: You haven't ...
12
votes
1answer
80 views

Spanish Babel causes accents in start of sentence to stretch cell height

When the first letter of a sentence in a table cell has an accent, the cell height is stretched and it looks strange. This only happens when I use the Babel package (with Spanish) so I think it may be ...
12
votes
2answers
2k views

Right-to-left text in LaTeX - reversed numbers and parentheses

Finally I got my Hebrew working on LaTeX. Everything's working great except for two issues - numbers and parentheses. Numbers are written the other way around (one hundred would be written 001), and ...
12
votes
1answer
425 views

Ancient Greek hyphenation in LuaLaTeX

Can anybody tell me the current state of hyphenation patterns in LuaLaTeX, especially with regard to Ancient Greek? I searched here on tex.sx and on the web. There are many mailing lists discussing ...
12
votes
1answer
1k views

How can I make AUCTeX spell check in the language specified by babel and csquotes macros?

It is possible to make AUCTeX load the spelling dictionary of the language which babel is loaded with. One further convenience would be for it to appropriately react to changes of language within a ...
11
votes
3answers
172 views

How to pass a macro as the argument to \selectlanguage

The following mwe throws the error You haven't defined the language lang yet. \documentclass{article} \usepackage[american]{babel} \newcommand{\lang}{american} \selectlanguage{\lang} \begin{document} ...
11
votes
2answers
606 views

Unexpected clash between babel and pgf spy

The following example taken from the pgfplots manual (p. 121) works fine only if the line loading babel is commented \documentclass{article} \usepackage[frenchb]{babel} % this is the troubelsome ...
11
votes
2answers
751 views

Tikz and babel error

This code works correctly: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,calc} \begin{document} \begin{tikzpicture} \tikzset{ every picture/.prefix style={ ...
11
votes
2answers
362 views

Using breakable hyphen "= in \newcommand

I want to use a breakable hyphen "= in a command: \documentclass[a4paper]{article} \usepackage[ngerman]{babel} \newcommand{\TT}{Test"=Text } \begin{document} This is a test whether the hyphen in \TT ...
11
votes
2answers
2k views

Multiple-language document - babel - selectlanguage vs begin/end{otherlanguage}

What's the difference in babel package, between : \selectlanguage{languageA} and \begin{otherlanguage}{languageB} Text in language B. \end{otherlanguage} ? I'd like to write two langauge ...
11
votes
1answer
762 views

Why is babel loading all these languages?

The following document: \documentclass{article} \usepackage[english]{babel} \begin{document} Something \end{document} Produces the following .log file: Running `LaTeX' on `mwe' with ``pdflatex ...
11
votes
2answers
229 views

Is babel a proper place to reset document layout?

The babel package, when called with some language options, changes global document layout. For exapmle, \usepackage[french]{babel} forces first paragraph after sectioning command to be intented, ...
11
votes
1answer
463 views

babel, frenchb and em dash

If I'm not wrong, in French the em-dashes, typeset with --- in LaTeX, are usually treated like the guillemets as far as non-breaking spaces go. An "opening" em-dash must be followed by a non-breaking ...
11
votes
1answer
664 views

Typography and style for acknowledgments written in different languages

My thesis is written in English, but for the acknowledgment page I think I will write a first paragraph in English, one in Italian and one in French. I was wondering if I have to do something ...
11
votes
1answer
587 views

“ with tipa and babel's ngerman / \shorthandoff{”} in a macro

TL;DR see below at "core problem" Problem I'm trying to solve a conflict between the packages tipa (Fonts and macros for IPA phonetics characters) and babel with the ngerman option. The problem ...
11
votes
1answer
163 views

How to make a new greek font to work with babel

I have an OpenType font (.otf) and I need to use it from pdftex. I use an 8 bit input encoding. I am stuck on the greek part with babel. The input I use is the following: ...