{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

4
votes
1answer
171 views

Is there any automatic way to detect hanging text on the right in LaTeX?

I wonder if there is any automatic approach to detect hanging text all throughout the 200-page thesis, mostly due to hyphenation issues. Consider the output below, there is like a subtle hanging text ...
2
votes
1answer
92 views

Strange hyphenation behaviour with babel's italian option

As an odd recurrence with many previous documents (and by subsequent trials and errors), I noticed that with this default, reduced MWE: \documentclass[a4paper]{article} % \usepackage[OT1]{fontenc} ...
2
votes
2answers
98 views

special characters not showing (mathexam+babel)

I am trying to edit a exam using a template I found on internet (article using mathexam package) but since I have to use special characters of Brazilian portuguese (like á, à, ç, ã, õ, ô, â, ê) my ...
3
votes
1answer
256 views

How to install `babel` in Texmaker?

How do I install babel language pack in Texmaker? I want to use \usepackage[swedish]{babel} in Texmaker. At the moment, Jag är bäst in Texmaker gives Jag r bst in the PDF. I use Windows 8.
6
votes
1answer
83 views

glossaries in French

I try to get a glossary in French. So I started with a sample (in english) from glossaries package. I run latex then makeglossaries then latex (x2), everything was fine with the sample. I run the same ...
1
vote
1answer
75 views

Czech characters are wrongly typeset

I am witing a document that is almost entirely in English but abstract will be in Czech as well as my name on the title page so I need the support of Czech characters. Until now I never had problems ...
8
votes
1answer
89 views

Elegant way to define a package with translations

A problem that sometimes arises with constructing packages, is enabling translations. Currently I maintain two packages foo-nl.sty (Dutch version) and foo-en.sty (English version). A problem with ...
2
votes
1answer
94 views

blindtext, unicode-math, and babel won't play nice because of setmathfont (in LyX)

Usng unicode-math, I am trying (in LyX) to use a font for my main font, and also for math Latin and Greek characters, while keeping the rest as is. At the same time, I want to use blindtext. ...
1
vote
0answers
23 views

Eliminating the action of babel from a given point onwards

I'd like to use the Babel package to reproduce italian titles ONLY in the very first part of the document. I'm writing my thesis and I'm expected to introduce the work by writing the title page ...
0
votes
0answers
16 views

Why the language selection of babel affects the page number format? [duplicate]

I writing a report in spanish, and I would like the page numbers in the \frontmatter to be numbered with lowercase roman numbers. However, the selection of spanish in the babel package changes the ...
5
votes
1answer
48 views

Conflicting packages in presentation (beamer vs. ethiop)

I'm making a presentation and I have to include some text in Ethiopic script. For documents, the ethiop-package is a great help, but when in beamer mode, I get an error: ...
1
vote
1answer
38 views

“You are using two French options for Babel” due to the use of \theendnotes with frenchle?

While compiling to pdf a LyX document that uses packages frenchle and endnotes, I get: "You are using two French options for Babel" when I try to generate the pdf. The solution is given here for ...
3
votes
0answers
254 views

After an update a document stopped compiling due to babel [closed]

I've written a document in my laptop (I have Debian and I use KDE and Kile as my latex editor) This is my header: \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} ...
4
votes
0answers
50 views

Which languages defined in babel repeat hyphen at start of line after hyphenation?

Babel (v3.9k) states that: \babelhyphen{repeat} inserts a hard hyphen which is repeated at the beginning of the next line, as done in languages like Polish, Portuguese and Spanish. I checked ...
6
votes
2answers
81 views

IfLanguageName versus iflanguage

The babel package recommends using the command IfLanguageName of the iflang package to test for a language. It is explained that the command iflanguage is too coarse, because it is only based on the ...
1
vote
1answer
80 views

pgfgantt create a blank page

I have this code that create a Gantt chart using pgfgantt package. I have two problems : This code create two pages (the first is blank) There's untranslated words (e.g. Today) Here's the code : ...
2
votes
1answer
67 views

pgfgantt not working with babel

In this example month names are printed in English even the babel package is loaded with French language. \documentclass{article} %\usepackage[pdftex,active,tightpage]{preview} ...
4
votes
2answers
124 views

Language selection for \maketitle

I am writing a document in English but when I use \maketitle, it inserts the date in Czech (my mother language I normally use when writing other text documents). I have set my IDE (TexWorks) to ...
2
votes
0answers
43 views

babel problems: “Unknown option `danish'” [duplicate]

have problems with the babel options. I use Texmaker and: \usepackage[danish]{babel} and get this failure: ! Package babel Error: Unknown option `danish'. Either you misspelled it What to do? ...
5
votes
1answer
39 views

Reducing space before chapter works with english but not with hungarian babel package

I write my thesis recently and I want to reduce the spaces before chapters. I find the solution, but it isn't working for me with \usepackage[magyar]{babel} I use the following codes: ...
5
votes
3answers
181 views

To write Latvian in Babel

I know this thread about Changing language in babel, but I do not see any aux file generated in my case. So cannot delete them. My file \documentclass{letter} \usepackage{hyperref} ...
5
votes
2answers
148 views

Error with chronology and babel packages : “! Paragraph ended before \pgffor@next was complete.”

I am trying to use the chronology package in a report that includes babel. My distribution : pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) On below my MWE : \documentclass{article} ...
4
votes
1answer
89 views

Pdf bookmark error in beamer [closed]

Hi. I've compiled a Persian language beamer file by both luapersian and persian babel package using LuaLaTex, and in both I've the same problem in pdf bookmark as shown in the figure (some strange ...
0
votes
0answers
30 views

Package babel error: Unknow option [duplicate]

I just installed pdfTeX (Tex Live 2013/Debian) on by Ubuntu 13.10 laptop, but I have problems with the babel package. My code: \documentclass[12ptk a4paper]{article} \usepackage[danish]{babel} ...
6
votes
2answers
295 views

Typesetting in Tamil on ShareLaTeX

My main goal is to display Tamil script in LaTeX using ShareLaTeX. I would be happy to figure out a minimal working code to display வணக்கம் in ShareLaTeX. \documentclass{article} ...
2
votes
1answer
73 views

Contributing to Babel or Polyglossia language support

I want to contribute language support for Babel or Polyglossia, so that I can type in my native language and use LuaTex or LuaLaTeX. Lithuanian support at the moment is using L7x font encoding and if ...
1
vote
1answer
52 views

Babel Multilingual Hyphenation Order of Precedence?

When I use multiple languages with Babel (e.g., with \usepackage[german,french,latin,english]{babel}), I realize that english is the default language because it is the last listed, but what does Babel ...
16
votes
2answers
267 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 ...
5
votes
2answers
77 views

Contents page in two different languages

I'm currently writing a report where all of my titles are in French and hence my table of contents is also in French. I however need to also include a contents table in English and I was wondering if ...
2
votes
1answer
100 views

Automatically Detect Foreign Language for Hyphenation?

Is there a LaTeX package that automatically detects which foreign language a particular part of a multi-language TeX document is so that it can hyphenate it appropriately, or do I have to manually ...
3
votes
1answer
91 views

Problem with babel [brazil] and tikz-cd's phantom arrows

I'm trying to draw the following diagram using tikz-cd \documentclass[11pt]{article} %\usepackage[brazil]{babel} \usepackage{amssymb, tikz-cd} \tikzset{commutative diagrams/.cd} \begin{document} ...
1
vote
1answer
105 views

Switching first paragraph indentation rules with babel

I am aware that many questions have already appeared here regarding the indentation of the first paragraph, but I did not find any on this precise problem. I am writing a document with some portions ...
3
votes
1answer
64 views

Latex use other languages in section title

I am writing in english, greek babel and I have custom commands to change between languages. The problem is that I can change to english for example, anywhere in my text except in \chapter{}, ...
5
votes
1answer
63 views

Xindy and german babel shorthands “-, ”= etc

I'm using XeLaTeX, imakeidx and xindy, and I'd like to use shorthand like "- and "= in the index entries (soft and hard hyphen allowing hyphenation within component words, from [ngerman]babel). I ...
2
votes
0answers
174 views

bbm.sty not found, unknown option 'ngerman'

there is a piece of my header.tex: \documentclass[paper=a4,toc=bibliography,chapterprefix,parskip=true}{scrreprt} % ------------------------------------------------------------------- %%% Laden ...
1
vote
1answer
1k views

Unable to get rid of error babel: You haven't defined the language en yet? [closed]

! Package babel Error: You haven't defined the language en yet I am getting the above error - no matter what I do... I have tried everything from the other answers and am sure now that its not ...
0
votes
0answers
123 views

The french babel gives me a missing \begin{document}

My impression is that is an already answered question. However, I am really stuck with this: This code: \documentclass[french]{book} \usepackage[utf8]{inputenc} \usepackage{babel} ...
7
votes
1answer
91 views

\foreignlanguage in tabular environment

\foreignlanguage does not work in tabular. How to switch language in tabular? \documentclass[spanish,russian]{scrbook} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} ...
1
vote
1answer
68 views

Using language Portuguese on Appendices throws unsupported control sequence [duplicate]

I am trying to compile my work under MikTex 2.9 windows 7 and/or Kyle 2.1.2 The appendices are throwing an unsupported control sequence error when I try to compile with the langage set to Portuguese. ...
6
votes
1answer
204 views

Why \shorthandon and \shorthandoff cannot be embedded in other macros?

Surrounding \title macro with \shorthandon{;:!?} and \shorthandoff{;:!?} gives the expected result with babel's french language (space added before the '?', '!', ':' and ';'): ...
5
votes
2answers
154 views

TikZ and Babel disagree when Hebrew is loaded

As with most things related to LaTeX, when Hebrew (and I assume other RTL languages too) tend to completely break everything. \documentclass[10pt]{article} %\usepackage[utf8x]{inputenc} ...
6
votes
3answers
142 views

Define a \dots-aware command

edit: changed the MWE to show the problem with french babel So, I was wondering about in TeX.sx and came upon this question How do magic \dots work in amsmath?, I wanted to do the same thing (have a ...
1
vote
0answers
49 views

Package babel Error: Unknown option `ngerman' [duplicate]

I've tried to create German quotation marks in LaTeX, but after compiling with \usepackage[ngerman]{babel}, I get this error: ! Package babel Error: Unknow option `ngerman'. Either you misspelled it ...
2
votes
0answers
65 views

Can't Compile Because I haven't loaded Babel - But I'm not using Babel? [duplicate]

I tried compiling a document with an included Hebrew word. I copy and pasted the \usepackage example loading English and French as an example. Since then, my document will not compile no matter what I ...
9
votes
3answers
432 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); ...
2
votes
2answers
82 views

Main text and bibliography in two languages but with alternate date format

I'm writing a text in American English and German (new orthography), so I use \usepackage[ngerman,USenglish]{babel}. The biblatex bibliography also contains English and German references. I need the ...
1
vote
2answers
71 views

Russian and Chinese in the same document

I'm writing a document that is going to required having Russian, Chinese characters, and English. I'm using CJK and babel and example code is below: \documentclass[12pt]{article} ...
2
votes
1answer
72 views

Problem with Swedish hyphenation using apa6 with \usepackage[swedish]{babel} [duplicate]

I can't seem to get Swedish hyphenation to work within the document when using the apa6 document class, though I am using the Swedish babel package. The problem is not citation related, but concerns ...
5
votes
1answer
171 views

Chemfig - command arrow - alignment doesn't work

I'm writing my bachelor thesis. I wanted to insert a chemical equation, but the reactant and the product are not horizontally aligned well. I found in Chemfig manual a solution to this problem but ...
3
votes
1answer
111 views

Pleaseinsertintopreamble in ToC and header

I wanted to style chapter headings, found out about titlesec and wrote the document like this: \documentclass[a4paper,12pt]{book} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} ...