{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

19
votes
2answers
975 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 ...
10
votes
4answers
4k 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 ...
16
votes
1answer
9k 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} ...
12
votes
3answers
512 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. ...
16
votes
1answer
571 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 ...
32
votes
1answer
3k 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 ...
12
votes
1answer
2k 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 ...
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 ...
11
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 ...
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 ...
9
votes
2answers
486 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 ...
5
votes
2answers
2k views

\usepackage[turkish]{babel} and \includegraphics inconcistency

Here is my document : \documentclass[12pt]{book} % must-have packages \usepackage[turkish]{babel} \usepackage[utf8]{inputenc} % This package will support Turkish chars % must-have packages ...
22
votes
3answers
7k 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 ...
23
votes
4answers
23k 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 ...
20
votes
1answer
474 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 ...
14
votes
1answer
852 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 ...
12
votes
2answers
434 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 ...
9
votes
2answers
2k 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 ...
6
votes
2answers
662 views

Pass keyval string option to babel

How to pass a keyval string option given to my package to babel? I load my package with \usepackage[languages={ngerman,english}]{mylang} In package mylang I want to handle this optional languages ...
3
votes
2answers
861 views

TeX fails to generate output with Hebrew text: Jerusalem font metric file missing

I have MiKTeX installed on a Windows machine. I have this simple document, where I'm trying to use Hebrew: \documentclass[12pt]{article} \usepackage{ucs} % package to add unicode support ...
11
votes
1answer
339 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={ ...
10
votes
3answers
581 views

Punctuation in bibliography with multiple languages

In a document written in a given language (in my case French but it may not matter so much) I have a bibliography mixing entries in different languages (in this case French, English and German). I ...
36
votes
2answers
5k 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, ...
19
votes
2answers
12k 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) ...
10
votes
1answer
358 views

AUCTeX's csquotes integration does not work together with babel

I use the AUCTeX feature to expand " into csquotes macros. To enable it I have put the following in my .emacs: ;; " expands into csquotes macros (setq LaTeX-csquotes-close-quote "}" ...
10
votes
1answer
438 views

What is a good strategy to internationalize a document class?

I am busy with a new document class and I have been trying my hand in internationalizing some of the contents. I have tried using translator from Beamer. Is this a good strategy? Can the code shown ...
6
votes
2answers
480 views

French and English text in one document with a single style of footnote

I have a book containing essays variously in English and French and wish hyphenization and other aesthetic issues to match whatever language is in use at the moment, but I want footnotes to follow a ...
9
votes
3answers
207 views

Problem with babel and tikz using \draw

I'm trying the next code: \documentclass[pdftex,spanish]{article} \usepackage{babel} \usepackage{tikz} \begin{document} Simple arrow: \begin{tikzpicture} \draw[->] (-1.5,0) -- (1.5,0); ...
5
votes
1answer
495 views

Error caused by interaction between minted, footnotes, babel and "(double quote)

I'd like to put some inline code using minted but when I try to typesent the empty string "" I get an "undefined control sequence" error. Sample code: \documentclass[a4paper,10pt]{article} ...
4
votes
2answers
464 views

algorithmicx + babel + Hebrew incompatibility

When trying to create any document with babel and algorithmicx, e.g.: \documentclass{article} \usepackage[hebrew,english]{babel} \usepackage{algorithmicx} \begin{document} Hello, world. ...
1
vote
1answer
359 views

Including Hebrew text in a non-Hebrew document (Babel not working)

I need to introduce one Hebrew word in a document. I have been trying to add an hebrew option in my Babel includepackage command, as in the following code, but it does not work: it triggers a clash ...
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) ...
13
votes
2answers
751 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 ...
18
votes
4answers
8k 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.
12
votes
1answer
329 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 ...
11
votes
1answer
524 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 ...
6
votes
2answers
4k views

Appendix in LaTeX

I have the following document: \documentclass[11pt,a4paper,twoside]{book} \usepackage[spanish,activeacute]{babel} \usepackage[titletoc]{appendix} \begin{document} \setcounter{tocdepth}{2} ...
4
votes
2answers
392 views

Fix nested section numbers in RTL languages with polyglossia.

The third subsection in the second subsection of the first section should be numbered 1.2.3. This holds also for RTL languages, since numbers, including Dewey numbering is still LTR even in an RTL ...
10
votes
4answers
191 views

\newgeometry doesn't work with Turkish babel package

\newgeometry is a nice feature of geometry package. I found out that it doesn't work (together with many other problems) when \usepackage[turkish]{babel} is also used with many errors stating: ...
9
votes
1answer
294 views

What is the implication of the warning in the fontspec manual with respect to babel and LuaTeX?

In the fontspec manual, there is a section on LuaTeX that states: babel   The babel package is not really supported! Especially Vietnamese, Greek, and Hebrew at least might not work ...
8
votes
2answers
520 views

best practice international template

I would like to have a template which can be internationalised (i.e. is suited for latin script languages) and uses the microtype package. I suppose that we therefore need the following packages: ...
7
votes
1answer
12k views

Package babel Error: You haven't loaded the option english yet [duplicate]

Sorry for the less-than-descriptive title, but I'm new to LaTeX and have no idea how to debug or make sense of errors. I've modified an invoice template from here to suit my needs, but I'm getting ...
5
votes
0answers
205 views

Russian and Japanese and biblatex oh my

I'm trying to typeset a book with bibliography entries in English, Russian and Japanese. Getting the bibliography to work right is driving me mad. I have got pretty close (I think) by cobbling ...
5
votes
3answers
596 views

hyperref bad references

After cleaning up my project and compiling a tex file 10 times in a row: rm temp.toc temp.pdf temp.out temp.html temp.aux xelatex temp.tex # executed 10 times! I still get bad references with ...
4
votes
2answers
2k views

Problems typing in Russian (MiKTeX)

I'm trying to make a LaTeX file in Russian. I wrote the following in the preamble: \usepackage[cp1251]{inputenc} \usepackage[T2A]{fontenc} \usepackage[russian]{babel} However, when I try to make ...
3
votes
1answer
338 views

Beamer crashes with babel Turkish package

I just started to learn beamer and noticed that the problem in \usepackage[turkish]{babel} and \includegraphics inconcistency question applies for beamer and \shorthandoff{=} solution does not work. ...
3
votes
3answers
1k views

polutonikogreek with lmodern 12pt

Within a document in ngerman or english, I'd like to have some Greek text using babel's polutonikogreek. It seems there are two options for including greek text: \textgreek{mikra'iti mouse~ion} ...
2
votes
1answer
444 views

babel package and lstlisting caption incompatibility

I am using babel package for Turkish language and I also use listings package. A code sample for one of my listings is as follows: \begin{lstlisting}[label=some-code,caption=Poo Class] public class ...
16
votes
3answers
3k 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 ...
10
votes
1answer
946 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 ...