# Tag Info

9

The czech language module for babel makes the hyphen character - an active shorthand, which means that some uses of - break or don't work as expected. You can temporarily disable this special meaning of - with \shorthandoff, to keep the effect of this command local, we add \begingroup...\endgroup around the equation. \documentclass{article} \usepackage{...

6

The German module for babel makes " into a shorthand. This shorthand is implemented as a one-argument macro, because it's necessary to know what comes along and decide what to do: for instance "a will produce “ä”, "s yields “ß” and "| disables a ligature at the spot. In the case of "{...}, the entire contents inside the braces is the argument, which ...

5

You cannot put skips in the prebreak, postbreak and nobreak texts. You can have a kern, though. It won't participate on space stretching or shrinking in the line. Two methods, I'd prefer the first because it carries more semantic. \documentclass[10pt,twoside]{book} \usepackage[czech]{babel} \usepackage[papersize={85mm, 100mm},showframe]{geometry} \...

4

It is basically the same as here Document with custom bibliography driver compiling with babel 3.33 and biblatex 3.13a ; but not compiling with most recent package versions. Only that it is not only the hyphen but also the apostroph. Either disable all shorthands: \usepackage[slovak,shorthands=off]{babel} or patch the two offending chars away: \...

3

This is structurally the same issue as discussed in Document with custom bibliography driver compiling with babel 3.33 and biblatex 3.13a ; but not compiling with most recent package versions. But for Slovak we don't only need to think about the dash (-) but also about the apostrophe ('). \documentclass[12pt,a4paper,twoside,openright]{book} \usepackage[T1]{...

3

Add \usetikzlibrary{babel}, which is precisely made for this purpose. \documentclass{article} \usepackage[ngerman, english]{babel} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amssymb} \usepackage{extarrows} \usepackage{mathtools} \usepackage[all]{xy} \usepackage{tikz-cd} \usetikzlibrary{babel} %<-added \begin{document} ...

2

The \IfLanguageName takes three argumnents in the form of a language name true branch false branch In all 4 uses of \IfLanguage you are missing the false branch, add them and it works ok.

2

Just pass the languages as class options: \documentclass[french,brazilian,bidi=default]{abntex2} \babelprovide{arabic} \babelfont{rm}{FreeSerif} \begin{document} \languagename \foreignlanguage{arabic}{واحد} two \foreignlanguage{arabic}{ثلاثة} four \selectlanguage{french} \languagename \end{document} This should work with both xetex and luatex.

2

It is best to avoid legacy 8bit TeX encodings with xetex. You can use any OpenType font that has Cyrillic, I use Arial here: \documentclass{beamer} \usepackage[american,russian]{babel} \usepackage{fontspec} \setmainfont{Arial} \setsansfont{Arial} \begin{document} \begin{frame}{Здравствуйте} \begin{enumerate}[] \item<2->{\color{black}\small Б} \...

1

Add the TikZ library babel. \documentclass{scrbook} \usepackage[spanish, es-nodecimaldot, es-tabla]{babel} \usepackage{tikz} \usetikzlibrary{babel,calc} %<- added babel \usepackage{xparse} \tikzset{% Cote node/.style={ midway, fill=white, inner sep=1.5pt, outer sep=2pt }, Cote arrow/.style={ <->, ...

1

After having an idea about what's going on behind the scene I thought in a first place that "\relax{\bfseries Bold text for test} is a good approach. Since I need the approach in different scenarios I finally found "\bgroup{}\bfseries Bold text for test\egroup{}" which seems quite similar but has the advantage to solve my other issue as well.

1


Only top voted, non community-wiki answers of a minimum length are eligible