Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes
Accepted

Babel: Undefined control sequence \__hook_toplevel selectfont ...size \bbl@xenohyph

You must upgrade (see the bug report Undefined \bbl@xenohyph with Thai). Sadly, there is another error, which can be fixed with the following lines just after loading babel: \makeatletter \def\bbl@...
Javier Bezos's user avatar
  • 10.3k
3 votes

Incompatibility between ctexcap and babel-arabic?

arabic.ldf is very old and not compatible with an unicode engine. With lualatex you can use something like this: \documentclass[border=2pt]{standalone} \usepackage[UTF8,fontset=fandol]{ctexcap} \...
Ulrike Fischer's user avatar
2 votes
Accepted

How can I create a document with bilingual headings and table of contents in KOMAScript?

With KOMA-Script you can simply define a new ToC using \DeclareNewTOC and write the German entries to that new ToC: \documentclass{scrbook} \usepackage[ngerman,main=english]{babel} \usepackage{xcolor} ...
cabohah's user avatar
  • 12.5k
2 votes

How to write both English (ASCII) and Russian (Unicode) characters in same line?

There are reasons for LaTeX not allowing this by default, the main ones being that pdflatex only uses 8-bit fonts and that even OpenType/TrueType fonts used in XeLaTeX or LuaLaTeX don't necessarily ...
egreg's user avatar
  • 1.1m
2 votes
Accepted

How to set a specific font for numbers (0-9) while keeping the main font for Arabic/Persian characters in XeLaTeX and Polyglossia?

The following is similar to the answer you linked to. It limit the font changes to when the Persian language is in use (via \inlineextras@persian and \blockextras@persian from polyglossia) and it ...
Udi Fogiel's user avatar
  • 4,169
2 votes

(LuaLaTeX) What's the best bidi option when having a bidirectional multilingual document?

Basically, forget about basic-r. It was a first attempt to create a bidi algorithm. Just follow the advice in the manual and prefer basic. bidi=default works in the 3 basic engines (pdftex, luatex and ...
Javier Bezos's user avatar
  • 10.3k
1 vote

`classicthesis` does not give me smallcaps in headings

If I remove all the interfering and contradicting font packages and disable as mentioned in https://tex.stackexchange.com/a/654221/2388 the microtype patches small caps works fine. The error from the ...
Ulrike Fischer's user avatar
1 vote
Accepted

Basic multilingual lualatex document

It depends on what you need. For small chunks of texts in the secondary languages (words, sentences, maybe groups of a few paragraphs), there is no need to pass the languages as options: \...
Javier Bezos's user avatar
  • 10.3k
1 vote
Accepted

xepersian & polyglossia: section numbering is rtl, even though german is main language

The xepersian package is mostly useful when your main text is going to be in Farsi, otherwise you have to configure a lot of things to use it effectively. Instead, I suggest using the bidi package, ...
NEO's user avatar
  • 342

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