15 votes
Accepted

What happened to \luatextextdir?

The 'proper' (internal) name of the primitive has always been \textdir, but for various reasons it used to be 'activated' as \luatextextdir in LuaLaTeX. The LaTeX team have recently revised this ...
Joseph Wright's user avatar
  • 257k
11 votes
Accepted

How to reverse section numbering for right-to-left languages?

Using the solution from Fix nested section numbers in RTL languages with polyglossia (and no, I haven't gotten down to why this works yet): \documentclass{book} \usepackage{polyglossia} \...
Mike Renfro's user avatar
  • 20.5k
10 votes

How can I input Uyghur language in LaTeX?

Disclaimer: I can't read Uyghur, so I don't actually know if this is correct. Neither polyglossia nor babel appear to support Uyghur out of the box. ArabTeX claims to, but I think you have to use ...
David Purton's user avatar
  • 25.6k
10 votes
Accepted

Arabic Numerals in Arabic Text

To get the Unicode bidirectional algorithm working correctly, you need to use babel. There are many clever things babel can now do with lualatex and right-to-left languages. Have a look through the ...
David Purton's user avatar
  • 25.6k
9 votes
Accepted

tikz: Right to left text within text along path

As it has been mentioned already, the reverse text effect described in the TikZ manual is what you are looking for. However, you also want to first group the letters using the group letters effect, ...
Alex Recuenco's user avatar
8 votes
Accepted

Misplaced comma after LTR word in bidirectional document

XeTeX and/or the bidi package seems not to handle this correctly. With lualatex and babel it works out of the box (I don't have your font here, so use another one): % compile with lualatex \...
Ulrike Fischer's user avatar
7 votes
Accepted

Point location in the end of RTL sentence with a last English word

You have to explicitly change the language to English: \documentclass{article} \usepackage{polyglossia} \setmainlanguage{hebrew} \setotherlanguage{english} \setmainfont{Linux Libertine O} \begin{...
David Purton's user avatar
  • 25.6k
7 votes
Accepted

How to make an enumerated list's numbering alphabetic per the Hebrew alphabet, in a Hebrew beamer presentation?

You can not use enumitem with beamer: As you saw it overwrites various beamer commands and so destroys the look and also overlay specification. beamer loads the enumerate package which allows to ...
Ulrike Fischer's user avatar
7 votes

witharrows package reverses text in RTL language?

That problem is not specific to witharrows. It's a problem of the PGF/Tikz nodes (in conjunction with polyglossia and xelatex). I think that the best solution is to put a command \tikzset{text=.} in ...
F. Pantigny's user avatar
  • 38.6k
6 votes

How to reverse section numbering for right-to-left languages?

The above answer is correct. I am adding this answer for the reference. One should add this lines to the MWE provided in the question: \makeatletter \def\SepMark#1{\gdef\@SepMark{\if@RTL\fi#1\if@RTL\...
Ho1's user avatar
  • 1,302
6 votes
Accepted

Right-to-left interlinear translation, multiple words for one translation

An explicit (=cumbersome) and cleaner solution A quick solution would be to use the bidi package’s \LR{} command: \glc \LR{In the beginning} created God - \LR{the heavens} and \LR{the earth.}// See ...
Júda Ronén's user avatar
6 votes
Accepted

Big gap between two parboxes in modified RTL expex environment

The problem is that \leftskip is used to leave space for the number, but in RTL typesetting the skip is needed on the right. You can define a \beginskip, which is \rightskip or \leftskip depending on ...
Marcel Krüger's user avatar
6 votes

bidi package fail with recent version of multicol

You could try this (but there is lots of guessing involved, so I don't know if it will also work in more complicated cases): \documentclass{article} \usepackage{multicol} \usepackage{lipsum} \...
Ulrike Fischer's user avatar
6 votes

How do I typeset RTL language phrases inside a document with mostly LTR text?

In LuaLaTeX, you can even configure Babel to detect the language you are typing in and select the correct font (and line-breaking) automatically. \documentclass[12pt]{article} \tracinglostchars=3 % ...
Davislor's user avatar
  • 43.3k
5 votes
Accepted

bidi, RTL and \write

You were lucky that 1 got output, if you use \documentclass{article} \usepackage{bidi} \begin{document} \showoutput \RTL \leavevmode\newwrite\toto \openout\toto=\jobname.sty \write\toto{1}ssss \write\...
David Carlisle's user avatar
5 votes
Accepted

Getting right-to-left output in Arabic and Persian/Farsi with pdfLaTeX

Short answer: Instead of \foreignlanguage{arabic} and \foreignlanguage{farsi}, use \AR and \FR. Firstly, the MWE given in the question (at least as of the current revision) is most certainly not ...
ShreevatsaR's user avatar
  • 44.9k
5 votes
Accepted

ConTeXt: How to typeset Arabic text?

[Disclaimer: Neither do I speak arabic nor do I have any understanding of the arabic script.] I copied the relevant stuff to setup the arabic font from ara-sty.tex. That is the font features and ...
Henri Menke's user avatar
5 votes
Accepted

Bidi algorithm and xelatex

Using lualatex and babel I recently discovered that babel use basic support for this using lualatex. You still have to use \selectlanguage{hebrew} to switch to a RTL paragraph, but inline bidi seems ...
David Purton's user avatar
  • 25.6k
5 votes
Accepted

bidi: Strange error tkz-tab package with texlive 2018

tkz-tab loads etex.sty. If I prevent this the document compiles fine: \documentclass[12pt,a4paper]{article} \usepackage{fontspec} \expandafter\def\csname [email protected]\endcsname{} \usepackage{tkz-tab} ...
Ulrike Fischer's user avatar
5 votes

Latex editor that correctly supports mixed RTL presentation

I don't think it's so clear that what you have seen is incorrect, even though certainly not ideal when working on a LaTeX file. I'm giving examples of Emacs (available on "all" operating systems, ...
pst's user avatar
  • 4,622
5 votes

How to make cleveref references use a language-sensitive connective between multiple references, when the document's language is Hebrew?

If you look into the cleveref code you can see that language support consist of two parts: At first a language option is defined, followed by a \cref@addlanguagedefs command which repeats everything. ...
Ulrike Fischer's user avatar
5 votes
Accepted

Is there in babel a list of all languages with RTL script supported by the package

They are scripts, not languages. The Arabic script is used by many languages, and the pair script-language, which OpenType calls ‘language system’, is what counts in a locale. The languages with ...
Javier Bezos's user avatar
  • 9,416
5 votes
Accepted

Tikz sweeps location of text inside node with Hebrew

Add the package option layout=graphics, that is: \usepackage[english,hebrew,bidi=basic,layout=graphics,provide=*]{babel}
Javier Bezos's user avatar
  • 9,416
5 votes
Accepted

How do I typeset RTL language phrases inside a document with mostly LTR text?

I advise to use lualatex with babel. It identifies the scripts which require RTL typesetting. In this example I have used Awami which better supports Urdu. Here is an example: \documentclass{article} \...
Niranjan's user avatar
  • 3,311
4 votes

LaTeX: issue when using multicol with RTL languages

I just ran into this problem, and did a bit more searching. I guess the trick is to use RTLmulticolcolumns instead of RLmulticolcolumns. Here is what the bidi manual says. In the previous versions of ...
vyom's user avatar
  • 447
4 votes
Accepted

Display tikzpiture environment in Righ to Left direction in a Document using a language with Left to Right direction as the main language

Arabic nodes in TikZ picture You may define a arabic node TikZ style: \tikzset{ arabic node/.style={ execute at begin node={\Arabic}, execute at end node={\endArabic}, }, } Completed ...
Paul Gaborit's user avatar
  • 70.3k
4 votes

How to reverse section numbering for right-to-left languages?

As others stated, what you are asking is wrong and indeed weird; xepersian have been around since 2008 and this is the first time I hear such thing. Say that you are using the book document class and ...
Vafa Khalighi's user avatar
4 votes
Accepted

How to force source code to be written LTR in a RTL document?

In your case better use of \newfontfamily\arabicfont[Script=Arabic, Scale=1.2]{Amiri} \newfontfamily\arabicfonttt{Courier New} Rather then \setmainfont[Script=Arabic, Scale=1.2]{Amiri} \...
Salim Bou's user avatar
  • 16.8k
4 votes
Accepted

Arabic bibliography in English document: Disconnected letters

As suggested by Salim Bou, change your main font... but locally using {...}: { \setmainfont[Mapping=tex-text,Script=Arabic]{Amiri} \setsansfont[Mapping=tex-text,Script=Arabic]{Amiri} \...
Paul Gaborit's user avatar
  • 70.3k

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