Tag Info

10

There are several possibilities. I'll present four different ways. The first two use directly or indirectly the macros \captions<lang> or \extras<lang> which are provided both by babel and polyglossia. babel says the following about those two: \captions<lang> : The macro \captions<lang> defines the macros that hold the texts to ...

6

Once you know that such information is irrelevant (and it is), you can use gentle manners (also known as “the sledgehammer”) to silence it: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{lipsum} \usepackage{etoolbox} \usepackage{hyperref} \makeatletter \patchcmd{\@decl@short}{\bbl@info}{\@gobble}{}{} ...

7

The info comes from \pdfstringdef, which is used to convert a TeX string to a PDF bookmark string. \pdfstringdef redefines many, many commands to disable them, to provide replacements. Thus hyperref also redefines some shorthands. For example, TeX's hyphenation is irrelevant for bookmarks, thus hyperref redefines the shorthands for ngerman regarding ...

4

This is clearly a bug in babel-italian. I'm not so happy about the addition of the “intelligent comma” feature. Adding \NoIntelligentComma doesn't fix the issue, because it keeps the comma as a math active character and this is the problem in alltt. If you don't need the “intelligent comma”, you can simply add \AtBeginDocument{\mathcode`,=\virgola} to ...

4

egreg's answer now explains why this works which I didn't understand when I posted it as a comment. If you load fontspec after babel, then it all works: \documentclass[11pt]{article} \usepackage[british,russian]{babel} \newcommand*\English{\selectlanguage{british}} \usepackage{fontspec} \setmainfont{Heuristica}% \usepackage{poetrytex} \begin{document} ...

8

The relevant part from babel.def is \AtEndOfPackage{\edef\latinencoding{\cf@encoding}} \AtBeginDocument{% \gdef\latinencoding{OT1}% \ifx\cf@encoding\bbl@t@one \xdef\latinencoding{\bbl@t@one}% \else \@ifl@aded{def}{t1enc}{\xdef\latinencoding{\bbl@t@one}}{}% \fi } Let's see what happens: at the end of the loading of babel, the instruction ...

3

TikZ 3.0 introduced a new babel tikzlibrary to solve these kind of problems. A tiny library that make the interaction with the babel package easier. Despite the name, it may also be useful in other contexts, namely whenever the catcodes of important symbols are changed globally. Normally, using this library is always a good idea; it is not always ...

4

The Russian module for babel defines \ch for the “hyperbolic cosine” operator. \documentclass{report} \usepackage[T2A,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian,ngerman]{babel} %%% save the command for the hyperbolic cosine \let\Ch\ch %%% undefine \ch \let\ch\relax %%% \usepackage{chemformula} \begin{document} Deutscher Text ...

Top 50 recent answers are included