{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

2
votes
1answer
655 views

babel's \foreignlanguage works for Russian, but not for Serbian

I was trying to write the Serbian alphabet using: \usepackage[serbian, english]{babel} ... \foreignlanguage{serbian}{D d} But I get nothing. When I try this with e.g: \usepackage[russian, ...
2
votes
1answer
324 views

Hyperref font selection problem with babel and french

How one can change font in the text form? \documentclass{standalone} \usepackage{xcolor} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[english,russian,french]{babel} ...
4
votes
1answer
378 views

Hyphenation of words connected with a double/triple dash

I can't hyphenate the words Cam•bri•an--Or•do•vi•cian because they are connected with an endash. The same probably happens when using the emdash. I tried this ...
4
votes
1answer
246 views

babel: adding language shorthands to work inside glossaries

I added ngerman shorthands to my english babel as described here. But they do not work for glossaries, and probably in other macors as discussed here. I load all the acronyms as a separate file in the ...
5
votes
2answers
574 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 ...
1
vote
1answer
118 views

Change default text of numbered \part [duplicate]

I have a large document with lector notes. And each lector I'm separating by \part. I would like to change the default numbering text from "part" to "Lecture". Example: ...
11
votes
1answer
28k 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 ...
7
votes
3answers
263 views

How to define a new command for guillemets marks [duplicate]

Possible Duplicate: babel shorthand "| doesn’t work in macros I would like to define a new command for guillemets marks. I know how to obtain them in LaTeX and those I would like to ...
14
votes
1answer
225 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 ...
3
votes
1answer
183 views

How do I discover the shorthands defined by babel in my language?

The reason I want to do it is that I want to set brazilian language in babel and I want to use xy-pic package, but I have to use it inside an environment in which the shorthands are off.
5
votes
1answer
931 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} ...
4
votes
1answer
176 views

autoref in French documents incompatible with TeX4ht

I'm currently using MiKTeX 2.9 on Windows 7 and can't get to compile a French document correctly. Here is a very minimal example: \documentclass[francais]{article} \usepackage[T1]{fontenc} ...
2
votes
1answer
209 views

How to change the order of algorithm number and name in algorithm2e?

I have to write an algorithm in Hungarian, where the caption must look like: 1.3. Algoritmus: caption of alg instead of the usual style Algorithm 1.3: caption of alg. Until now I had no ...
1
vote
1answer
943 views

Combination of Subfiles, Apacite and Babel packages result in LaTeX error

For my bachelor thesis, I want to write my chapters in separate files and be able to compile them separately. To combine them, I use the subfiles package. For citations, I have to use Apa style via ...
1
vote
1answer
335 views

LaTeX Templates in Russian

I am using LaTeX template for a thesis in English. Now I need to write my thesis in Russian using the same template. I added: \documentclass[11pt, a4paper, oneside]{Thesis} \usepackage{cmap} ...
3
votes
1answer
822 views

hyperref autoref capitalization problems with babel

I have already read some similar qustions, but the solution over there does not work if I add the 'babel' package. The thing is change the autorefname of one specific, say Figure, and I just want to ...
1
vote
1answer
1k views

Clash between TIKZ and French Babel [duplicate]

Possible Duplicate: tikz declare function and babel french option I'm working on a document requiring both tikz and [french]Babel. There is a clash between [french]Babel, and TIKZ: No ...
6
votes
2answers
226 views

Date declaration in datenumber

In the following MWE, \today prints the date in British format, e.g. 14th January 2013. However, \datedate prints the date as January 28, 2013. I wonder how the latter can be changed to the former. ...
0
votes
1answer
342 views

I would like to Change “Inhaltsverzeichnis” to “Contents” [duplicate]

Possible Duplicate: How to change the name of document elements like “Figure”, “Contents”, “Bibliography” etc.? In order to fix overruns I have used the following code: ...
22
votes
1answer
624 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 ...
9
votes
2answers
244 views

What is the difference between \declare@shorthand and \defineshorthand in babel?

What is the difference between \declare@shorthand and \defineshorthand in babel (v.3.9)? Which of the two macros is preferable in a language definition file? babel.pdf manual (v.3.9) provides an ...
3
votes
1answer
815 views

Using “German” quotation marks inside \newcommand [duplicate]

Possible Duplicate: babel shorthand "| doesn’t work in macros I know there is a deeper non-understanding of LaTeX mechanics at work here, but I have no idea how to phrase my question ...
4
votes
1answer
333 views

Classicthesis in Chinese?

I wish to compile my dissertation in the beautiful classicthesis. My setting: Mac OX 10.6.8, TeX Live 2012 + LyX 2.0.5. I am able to work and produce document in Chinese elsewhere including in book, ...
6
votes
2answers
792 views

Colon in bibliography keys incompatible with babel, biblatex and tex4ht

Keys are labeled as author:year in my BibTeX file. For example, @article{John:2000, author={John}, year={2000}, ...}. This scheme works well with pdftex, biblatex and mk4ht oolatex. But if in ...
8
votes
4answers
7k views

Language problems with biblatex and babel

I am trying to use biblatex with IEEEtran and babel, however I am having an error: Package babel Error: You haven't defined the language ENGLISH yet.. With regular Bibtex everything works as usual. ...
25
votes
2answers
4k 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) ...
8
votes
2answers
569 views

Undefined control sequence \bbljan

I'm writing a bibliography for an article in Russian. Using \bibliographystyle{plain} is not an option, since it uses e.g. conjunction "and" when listing authors. So I'm sticking to ...
3
votes
2answers
2k 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 ...
5
votes
1answer
193 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: ...
8
votes
1answer
493 views

Using \selectlanguage with csquotes

As per this question, I am using csquotes to convert quotationmarks to typographical-quotes. However, when changing language through \selectlanguage the quotationmarks no longer gets converted. (I ...
14
votes
4answers
1k 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. ...
8
votes
1answer
870 views

Babel warns of lack of hyphenation patterns for Hebrew

I use TeX Live including the Hebrew package. I've tried to produce a simple TeX file: \documentclass{article} \usepackage [english,hebrew]{babel} \begin{document} שלום \end{document} but I keep ...
1
vote
0answers
44 views

Why do I get this error when using babel? [duplicate]

Possible Duplicate: \tableofcontents encoding issue with lualatex I tried adding babel package to my file - to get proper hyphenation for my language. But I get strange error, related ...
5
votes
1answer
1k 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} ...
2
votes
1answer
1k views

babel and \contentsname, how to add extra customization?

This is what I'm trying to do: \renewcommand{\contentsname}{ \vspace{-8mm} {\Huge Table of Contents}\vspace{-3mm} \rule{\linewidth}{0.5mm} \\[-4mm] } Using babel, I can get this code to work: ...
13
votes
2answers
4k 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 ...
11
votes
3answers
952 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 ...
9
votes
3answers
9k views

Change the word “Table” in table captions

I need to have tables with their numbers, just as when I use \caption. My problem is that when I use the \caption it shows me like this: Cuadro x.x: this is some table. The word Cuadro is ...
12
votes
3answers
2k 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 ...
9
votes
2answers
2k views

No space after closing double quote

As the title says, there's no spacing after my closing quotes, I have boiled my huge preamble down to the following, % Manual: http://ctan.org/tex-archive/macros/latex/contrib/memoir/memman.pdf ...
5
votes
1answer
256 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 ...
1
vote
1answer
753 views

Incompatibility between \nobreakdash and babel

I use the \nobreakdash command to disallow a linebreak after the dash in short expressions like -s, -ar etc. I use ({\nobreakdash}-s, {\nobreakdash}-ar) but it seems not work as can be seen on the ...
3
votes
1answer
1k views

MiKTeX update: a too old babel/frenchb

This question deals with the version of a babel language available after a MiKTeX update (the french one, namely frenchb.dtx). I've just made an update of my (complete) MiKTeX 2.9, especially ...
9
votes
1answer
630 views

Write a class with language dependent strings

I am unable to make my class strings language dependent using babel. I have the following minimal example: file test-babel.cls \NeedsTeXFormat{LaTeX2e}[1999/12/01] ...
2
votes
0answers
534 views

How to turn the hyphenation on? [closed]

I was looking for a clue on how to use cyrillics in an english text and vice versa. Finally I found a solution here: Cyrillic in (La)TeX The solution looks like this \documentclass[article, ...
4
votes
3answers
289 views

Command to uppercase the first letter of a maths command

This question is a bit similar to Command to uppercase the first letter of each word in a sentence. What I want is to build a new command for being used just at math mode, using the ...
7
votes
2answers
286 views

pdflatex endless loop and page headings wrong aligned with dateiliste/babel [closed]

In the following code the heading is wrong aligned if babel and dateiliste are loaded together. Furthermore the whole MWE goes into an endless loop if the first line is removed. % remove to let ...
5
votes
3answers
901 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 ...
6
votes
2answers
723 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 ...
12
votes
2answers
844 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 ...