{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

6
votes
1answer
774 views

Language dependent custom command

I would like to define a command that slightly differs depending on the currently selected language in my document. My code: \documentclass{article} \usepackage[english,french,german]{babel} ...
6
votes
1answer
206 views

Expansion of command for language in otherlanguage environment

I wish to keep the language in a command \newcommand{\testlang}{english} \begin{otherlanguage}{\testlang} ... \end{otherlangauge} However, \testlang is not expanded, and i get the error ! ...
6
votes
1answer
513 views

Paragraph spacing in other languages.

I am writing a document in French using LaTeX and I found a weird behavior with paragraph spacing. Here is a MWE (in English): \documentclass{article} %\usepackage[french]{babel} ...
6
votes
1answer
88 views

How to set a global setting for hyphenation of already hyphenated words using XeLaTeX?

Please consider the MWE below, I want to globally invoke hyphenation of already hyphenated words using Babel package, Hyphenat package in English, to get the same effect when using ...
6
votes
1answer
304 views

LaTeX error with footnotes

This is the MWE: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \begin{document} \begin{titlepage} \begin{minipage}{0.8\textwidth} ...
6
votes
2answers
174 views

babel + xdef compile error

The following code throws the error Incomplete \iffalse; all text was ignored after line 7 when I enable the babel package. \documentclass[a4paper,12pt]{book} \usepackage[latin1]{inputenc} ...
6
votes
1answer
140 views

“in” untranslated for French incollection and artcle bibliography entries

Instead of showing the French word dans, BibLaTeX is putting in to introduce booktitles and journals. For example @incollection{rodgers99, Address = {London}, Author = {Roders, C.}, ...
6
votes
2answers
501 views

English / German APA reference fails partly - “retrieved from” and “origyear” untranslated

I have a problem with my multilingual APA reference. I use LuaTeX, BibLaTeX and biber. I use the BibLaTeX option babel=other to activate language switching. Switching gets done by adding an ...
6
votes
1answer
102 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 ...
6
votes
1answer
166 views

Dynamically change language for datetime

I am building a fairly complex letter template as article-extending class, which needs to be able to understand two languages (English and German). This is implemented via babel (with both ngerman and ...
5
votes
3answers
199 views

French internationalisation, override babel default spacing

I'm writing my thesis paper in French. In the document I use the name of the ISO27001:2005 norm name, and by babel conventions this is rewritten as ISO27001 :2005 with a extra space before the ...
5
votes
2answers
2k views

How to pass definitions to \AtBeginDocument?

I need to delay execution of a chuk of code to the time when other packages are loaded so I wrap it into \AtBeginDocument: \AtBeginDocument{% \def\reserved@a#1#2{% \edef\reserved@b{#1}% ...
5
votes
3answers
862 views

How to get LuaLaTeX to work with babel's \textgreek?

I'm completely at a loss with how to get LuaLaTeX to output Greek text. I have tested the following MWE with PDFLaTeX and LuaLaTeX on both TeXlive 2009 (Linux) and TeXlive 2011 (Win32) and in both ...
5
votes
2answers
2k views

Babel - Romanian ' or \c

I want to use some shortcuts to produce special character in Romanian. One of them is to use the command \c but also I know that is possible to use the following character: ' . example \c si or 'si ...
5
votes
3answers
212 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
1answer
261 views

Several questions about migrating to XeLaTeX

I am using LaTeX for years now but I am considering to migrate to XeLaTeX. The main reason for this change is the babel package which change a lot the layout of my documents according to my language ...
5
votes
1answer
130 views

Can I proofread babel hyphenation rules for a specific language?

I wonder where I can find and proofread the babel hyphenation rules. Would it be possible to learn from those hyphenation rules (for example for a student of a language) where to place a hyphen?
5
votes
2answers
212 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} ...
5
votes
1answer
616 views

Prevent biblatex from printing the language name and use language only for hyphenation

In my .bib-file the language field is filled out in all entries. As MWE, they all look (as expected) like: @Collection{Bakker:Grammar, editor = {Egbert J[an] Bakker}, gender = {sm}, title ...
5
votes
2answers
471 views

biblatex-apa and babel losing the ampersand with option spanish

I'm trying to use the package biblatex-apa with babel. It is working except that the APA style requires that parenthetical citations and bibliography references separate the last author by "&" and ...
5
votes
1answer
1k views

French typography: space before percent sign

I have come across another specific typography rule in French: one must put a non-breaking space before the percentage sign (see this handy cheat-sheet). This is also true for colons, semi-colons, ...
5
votes
3answers
894 views

LuaTeX cyrillic hyphenation problems

I am trying to use LuaTeX (LuaLaTeX) in MiKTeX 2.9 and I'm stuck with getting it to load cyrillic hyphenation patterns. I'm quite new to LuaTeX, so maybe there's something special about hyphenation ...
5
votes
1answer
665 views

moderncv and babel spanish cause “Missing \endcsname…” error

When I run the following code it compiles as expected: \documentclass[% 11pt ,a4paper ,sans ]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} ...
5
votes
1answer
155 views

Conflicts with Datatool and babel (french)

I am having trouble compiling a latex document using an external CSV file with datatool and using the french language from the babel package. The content of my latex file is: ...
5
votes
2answers
125 views

How to get chapter numbers to work in sections with memoir pagestyle{headings} and using babel?

I have a very strange behavior which I have managed to get boil downed into this minimal example. It's probably a bug report for either memoir or babel developers (where should that be sent?) but I ...
5
votes
2answers
183 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} ...
5
votes
2answers
465 views

Change hyphenation patterns only for a chapter

I am currently writing a book in Italian using LyX and I use \usepackage[italian]{babel} in the preamble. However, I need to write a chapter of this book in a different language. How can I change ...
5
votes
1answer
220 views

multilang with babel problem

I've loaded babel in my .sty file like this: \RequirePackage[ukrainian,russian,english]{babel} Then at .tex or at the same .sty file I am trying to: \selectlanguage(X) \languagename ...
5
votes
3answers
744 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 ...
5
votes
2answers
81 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 ...
5
votes
1answer
187 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 ...
5
votes
1answer
76 views

Changing the writing language

I write in greek (having before load all the necessary packages and own commands - babel etc). In order to change the language and write a word in english I type \gre and the letters appear with ...
5
votes
1answer
826 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} ...
5
votes
1answer
112 views

babel - define language synonym

I use \usepackage[english]{babel}, but I am keeping getting error: Package babel Error: You haven't defined the language EN yet. while parsing bibliography with \bibliographystyle{apsrev4-1} ...
5
votes
1answer
150 views

Babel breaks maketitle on moderncv's casual and banking templates

I'm working on my CV and I started using the classic theme. After finishing the document, I trried to switch to the casual theme (also happens in the banking theme), but I get the following error: ! ...
5
votes
2answers
146 views

Why does a different font appear on Greek and different on English?

I'm trying to create a pdf that contains both English and Greek. But the two different languages appear in different fonts. Can someone tell me why? This is my code: ...
5
votes
1answer
212 views

Missing space after “guillemets”

I have a problem with the \og and \fg characters for opening and closing "guillemet". The closing guillemet is always too close to whatever follows, in other words, there is missing space between \fg ...
5
votes
1answer
93 views

Bad interaction between babel and xypic?

I'm writing an elaborate in Italian, and I'm using XY-pic to draw some diagrams. Unfortunately it seems that babel is interacting with XY-pic, making it impossible to group elements. Here is a MWE: ...
5
votes
2answers
744 views

babel \L command reverses letters, inserts Ł symbol

It's time for Eyal's babel+Hebrew (or right-to-left) incompatibility of the week; and this time, it's hyperref again. If you have: \documentclass{article} \usepackage[hebrew,english]{babel} ...
5
votes
1answer
142 views

Babel and csquotes Language Problem in Biblatex

I have spent a lot of time customizing the biblatex style to my needs. Just when I thought it's finally ready, I can't seem to work biblatex properly. I need to use babel for correct hyphenation. But ...
5
votes
1answer
318 views

biblatex/babel autolang= doesn't work with idemtracker

Although I was glad to discover that biblatex integrates with babel for bibliography formatting, I might have found a bug that prevents it to work with idem (not ibidem) entries. Same goes with ...
5
votes
1answer
235 views

How to get polyglossia with babelshorthands to work with hyperref and csquotes?

I just switched from babel to polyglossia and got several errors which are related to the usage of \enquote in \section. The problems only occur if babelshorthands=true is set for polyglossia and ...
5
votes
1answer
611 views

\textit doesn't work with babel’s russian and mathptmx

\textit doesn't work in a LaTeX template for a thesis in English. Now I am writing my thesis in Russian using the same template. MWE: \documentclass{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
2k views

German hyphenation does not work

My babel configuration includes ngerman and english ... \documentclass[ oneside, openright, titlepage, dottedtoc, numbers=noenddot, headinclude, footinclude=true, cleardoublepage=empty, abstractoff, ...
5
votes
1answer
44 views

datetime causes incorrect date format even when babel is loaded first

According to the package manual, datetime supports language-sensitive date formats provided that babel is loaded first. The example on page 2 is: \usepackage[francais]{babel} \usepackage{datetime} ...
5
votes
1answer
61 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: ...
5
votes
1answer
230 views

how to change language within the .cls file

The problem is this: I want to use in the custom class file (named thesis.cls), a different language than English, Greek to be specific. In the .tex file I loaded the babel package with the command ...
5
votes
1answer
263 views

How to change hyphenation language without Babel?

I would like to change hyphenation pattern in pdlatex without using babel, because babel kills my document class in my language (hungarian). Unfortunately I cannot find a way to change the pattern ...
5
votes
1answer
40 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
2answers
289 views

Can't get babel and amsthm to play nice once Hebrew is loaded

I am working in LaTeX, and I am trying to get babel and amsthm to play nice together. I produced a minimal example (which gives a different error than the full project, but getting this to work could ...