Questions tagged [right-to-left]

{right-to-left} is about authoring and compiling Right-to-Left content (mostly in languages such as Farsi, Arabic or Hebrew) with (La)TeX. A popular package is {bidi}.

Filter by
Sorted by
Tagged with
0 votes
0 answers
40 views

How to make LaTeX ignore specific unicode characters? [duplicate]

I want to write LaTeX where the main body of text is in Hebrew. The example here works fine. In fact, this is the only way I managed writing in Hebrew so far. If I want the source code to present ...
user avatar
  • 1
1 vote
0 answers
99 views

How to do boustrophedon typesetting?

This is spurred from writing in Meander / Greek Key pattern. Ancient Greek writing was in boustrophedon style where one line was left-to-right, the next was right-to-left, the next was left-to-right ...
user avatar
  • 25.7k
1 vote
1 answer
55 views

reledmac subline numbers rtl

I am trying to use reledmac subline numbers with a rtl text using polyglossia. My issue: The subline dividers seem to be rendering incorrectly. I saw this question/answer, which might serve as a ...
user avatar
0 votes
0 answers
39 views

verbatim + hebrew + xelatex

I need to typeset Hebrew text, using xelatex, in a monospace font and a verbatim context. All the paragraphs should be RTL. How can I specify, using \fontspec, the font for verbatim mode?
user avatar
5 votes
2 answers
139 views

bidi package fail with recent version of multicol

I have this simple example of multicol in RTL document with bidi package. Version of multicol package in my TL2021 is 1.9b result after compilation with xelatex is incorrect \documentclass{article} \...
user avatar
  • 16k
1 vote
1 answer
75 views

Issue with align* environment in TRT pagedir (lualatex)

I have this example with align* environment in TRT pagedir (lualatex engine), The result is aligned to the right even though the environment is placed in left to right context (with \bodydir TLT \...
user avatar
  • 16k
2 votes
1 answer
105 views

Hebrew (right to left) title in biblatex

Is there a way to use Hebrew in the title field of bibliography database, so it might be displayed properly when the bibliography is generated by biblatex? What happens is: the Hebrew text appears ...
user avatar
  • 101
2 votes
1 answer
88 views

In right-to-left text, when use the pause, it changes the coveringdepth

In right-to-left text, when use the pause, it changes the coveringdepth MWE for RTL text: % !TeX TS-program = xelatex \documentclass{beamer} \usefonttheme{serif} \usepackage[RTLdocument=on]{bidi} \...
user avatar
  • 1,427
3 votes
1 answer
88 views

Polyglossia + Right-to-left language breaks tufte-book footnotes and sidenotes

I'm trying to write a document with tufte-book and polyglossia for a bit of hebrew inside english text. But the sidenote and footnote commands are not working. %! TEX program = xelatex \documentclass{...
user avatar
1 vote
0 answers
192 views

Writing Persian text in latex in vs code

I want to use VS code as my new latex editor because it offers lots of great features. But since I write lots of Persian text, VS code doesn't show them correctly. It doesn't have an RTL option to ...
user avatar
0 votes
1 answer
38 views

Multi-column Alignment Issue

Trying to create multi column Urdu dictionary. First entry should be on right side instead of left side. How align column RTL with preserving text alignment. Also spacing is not consistent between ...
user avatar
  • 1
0 votes
1 answer
61 views

Commands \textdir TLT and \pardir TLT strange effect with \bodydir TRT if inserted before \setbox (vertical mode)

This is a complement of my previous question What the difference (in construction) between a tcolorbox with width=\linewidth key and without it, I noticed that the issue appear if we add \textdir TLT ...
user avatar
  • 16k
0 votes
1 answer
74 views

What the difference (in construction) between a tcolorbox with width=\linewidth key and without it

I have this example of two tcolorbox in RTL context (lualatex) both are preceded with \textdir TLT, the first tcolorbox has the option width=\linewidth and the second one does not have this option, ...
user avatar
  • 16k
2 votes
0 answers
47 views

Issue with fixed width tcolorbox in start of new par (right to left context)

I have this example of a fixed width tcolorbox in RTL context inserted in the beginning of a paragraph, if I add \indent indentation appears normally but without it box go in opposite direction! Is ...
user avatar
  • 16k
0 votes
1 answer
70 views

switch from left to right

I am translating some articles to Arabic but when switch the bibliography to language English it is also switched in the table of contents I have to switch the bibliography to English to make it from ...
user avatar
0 votes
1 answer
124 views

How to integrate right-to-left (Persian) in a left-to-right line (English)?

I am writing a paper in English that has some Persian in it. To do that I am using \usepackage{polyglossia}. The problem is that the Persian script appears left-to-right like the main English sentence,...
user avatar
2 votes
2 answers
78 views

How to color particular portion of an Arabic text with arabxetex

MWE: \documentclass[12pt]{article} \usepackage{xcolor} \usepackage[voc]{arabxetex} \setmainfont{AlQalamQuranMajeedWeb} \newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{AlQalamQuranMajeedWeb} \...
user avatar
  • 157
0 votes
1 answer
60 views

What is the problem with \node[red]{X}; in RTL context (xelatex)

This example on tikz node if I use \node[red]{x}; in math mode (RTL context) the node appears faraway unlike \node[color=red]{x};, I thought the two were equivalent In pgfmanual (Page 173) we can find ...
user avatar
  • 16k
0 votes
1 answer
122 views

Automatic enumerate list using eastern Arabic letters in beamer

Consider the MWE below: MWE \documentclass{beamer-rl} \babelprovide[import=ar, main,mapdigits]{arabic} \usepackage{enumitem} \usetheme{CambridgeUS} \title{مثال تجريبي} \subtitle{نموذج} \begin{...
user avatar
  • 4,033
2 votes
1 answer
109 views

Issue in width of hyperlink box in vbox (RTL context)

Why in this example clickable box appears in RTL context very larger from what I have declared (2cm), in left to right context width of box is fine % lualatex \documentclass[12pt]{article} \usepackage{...
user avatar
  • 16k
1 vote
0 answers
42 views

Line numbering with memoir in Persian

I'm typesetting Persian poems alongside their translations. It would be useful to have line numbers for this. I am using memoir, but now I came across an issue I cannot solve. The line number appear ...
user avatar
  • 63
6 votes
1 answer
149 views

Misplaced comma after LTR word in bidirectional document

I am writing documents with both English and Hebrew text in LaTeX. It works well, except for one thing: when there is a punctuation mark after an English word in a Hebrew sentence, the mark is ...
user avatar
1 vote
2 answers
319 views

Create an adapted pgfpicture with fixed width for RTL context

Here an example of fixed width pgfpicture in RTL context (lualatex engine) \documentclass{article} \usepackage{pgf} \usepackage[showframe]{geometry} \parindent0pt \begin{document} \pagedir TRT \...
user avatar
  • 16k
0 votes
1 answer
68 views

\hbox issue in RTL context (vmode)

Consedering this example \hbox in RTL context appears on the left isn't it supposed to appear on the right side with \pardir TRT!? \documentclass{article} \usepackage[showframe]{geometry} \...
user avatar
  • 16k
3 votes
0 answers
103 views

Issue breakable box (tcolorbox package) with babel (layout=graphics)

This example with option layout=graphics produce breakable box out of page ( the non breakable one is ok). is there a solution for this issue. \documentclass{report} \usepackage[paper width=5cm,paper ...
user avatar
  • 16k
0 votes
0 answers
28 views

Lines Boxed Out in Table of Contents

I'm having some difficulty producing the table of contents for my MA thesis. For reasons I can't figure out, several lives are appearing solely as boxes, and appear to be oriented right-to-left. My ...
user avatar
2 votes
0 answers
75 views

Globally reverse direction of x coordinate in pgfpicture

I have this example of an RTL document which I need to revert x system coordinate, with tikzpicture environment I have used \tikzset{every picture/.style={xscale=-1}} to do that, but with pgfpicture ...
user avatar
  • 16k
4 votes
2 answers
184 views

\pagedir TRT with pgfpages cause an incorrect result (shift out of page)

Using \pagedir TRT with \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm,landscape] from pgfpages package produce logical pages to be shifted out of page. Same issue with layouts 4 on 1, 8 on 1, ...
user avatar
  • 16k
1 vote
0 answers
57 views

Weird space between English text and parentheses in RTL environment [closed]

I have a document with text in Hebrew, as well as some English text. Whenever I put the English text in parenthesis and process the document with XeTeX a space appears between the right bracket and ...
user avatar
  • 155
0 votes
0 answers
49 views

reledmac: Problem with RTL apparatus

I'm using reledmac to edit Hebrew texts. As the texts themselves are written right-to-left, I also want my apparatuses to behave that way. For the annotations (\footnoteA) this works smoothely out-of-...
user avatar
  • 21
1 vote
1 answer
53 views

Polyglossia Hebrew added horizontal space

As you can see in the picture, using Polyglossia to insert a snippet of Hebrew is giving me an unwanted space before the Hebrew insertion. And as you can see, it's not happening with Arabic, so it's ...
user avatar
0 votes
1 answer
69 views

Right-to-left pagecolumns and markings in ConTeXt

I am trying to typeset a two-column text in a right-to-left language using ConTeXt. Because I want footnotes in this text to be set ragged-bottom, I am using pagecolumns instead of standard columns (...
user avatar
0 votes
0 answers
43 views

genealogytree Right to Left

is there any work available for right to left typesetting which is enabling the genealogytree? Greetings I already searched and didn't find any reliable resource.
user avatar
  • 21
0 votes
0 answers
105 views

Enumerate out of box

I'm trying to make an enumerated list inside a box, but the bullets/numbers appears out of the box margins. Is there a way to fix that? code: \documentclass[english,hebrew]{article} \usepackage[...
user avatar
3 votes
1 answer
66 views

Section counter punctuation in an AMS article is positioned in LTR direction instead of RTL

I'm using amsart with XeTeX, LyX, and writing an article in an RTL language. Enumerations within text should normally position their punctuation in the opposite direction to separate between their ...
user avatar
0 votes
0 answers
75 views

diagbox with babel RTL tabular issue

I have issue with \diagbox in RTL tabular (babel with bidi=basic, lualatex engine), with xelatex bidi package provide patch of diagbox commands for right to left tabular, but for lualatex there isn't. ...
user avatar
  • 16k
2 votes
1 answer
221 views

table of content in persian language(the number is right to left)

I use code \titleformat{\chapter}[display]{ \bfseries \filleft\Huge}{ \chaptername\ \arabic \LTR{ \thechapter} }{6pt}{\bfseries\filleft} to write a table of content. in the table have but I ...
user avatar
  • 21
5 votes
1 answer
173 views

Reverse page layout in ConTeXt for two-sided RTL document

I'm trying to create a two-sided document in an RTL language. I'd like to reverse the margins, so that the first page has the binding on the right side, rather than on the left. Obviously I could ...
user avatar
2 votes
1 answer
214 views

Write Farsi in minted environment Latex

I'm using overleaf to write my document and I need to list some python code in minted environment that contains Farsi words as follows: \begin{minted}[bgcolor=bg]{python} >>> ...
user avatar
  • 123
1 vote
1 answer
74 views

Right to left column order in index for arabic with context

I have this MWE the problem I'm facing is columns order which I need RTL but it appear LTR I tried with \setupregister[align=r2l] and with \setupregister[style=\righttoleft] but it didn't succeed \...
user avatar
  • 16k
2 votes
1 answer
251 views

How to set up a new RTL language for babel using ini files?

How do you set up a new RTL language for babel using the new locale ini file system? e.g., consider trying to set up support for Classical Syriac. I started with babel-ar.ini and modified it to what ...
user avatar
  • 23.8k
1 vote
0 answers
87 views

Index Won't appear in an arabic document

I am making a book, and using Polyglossia package along with biblatex and XELATEX. I am using Arabic and English languages. When I try to make an index, it won't appear. Here is the code as shown ...
user avatar
  • 733
2 votes
1 answer
151 views

RTL footnotes suddenly switch to LTR

I'm using LuaLaTeX to typeset a Hebrew text with an RTL critical apparatus. As long as the footnotes are only from lemmata in lines 1 and 2, this works fine. When footnotes for line 3 lemmata are ...
user avatar
3 votes
1 answer
124 views

\colorbox with Hebrew

When using a \colorbox (or derivates such as framed's shadedbox) with Hebrew and pdflatex, the color stack seems to get confused: pdfTeX warning: pdflatex: pop empty color page stack 0 and the ...
user avatar
  • 970
2 votes
1 answer
129 views

Can't set critical notes RTL with verse numbers

Running XeLaTeX, I'm trying to typeset a critical edition of a Hebrew-script, Bible-style text (with verse numbers instead of line numbers). I can't seem to get the footnotes to be RTL. I have made ...
user avatar
0 votes
1 answer
372 views

English Paragraph in Arabic latex document

I'm writing my thesis using Latex, the document is in Arabic using Polyglossia, and managing the bibliography using biblatex. All the references are in English, as a result the reference Page is like ...
user avatar
0 votes
1 answer
79 views

How to activate or deactivate babel layout locally

Consider this example, how to deactivate tabular layout in RTL context \documentclass{article} \usepackage[nil,bidi=basic-r,layout=counters.lists.tabular]{babel} \babelprovide[import, main]{arabic}...
user avatar
  • 16k
1 vote
3 answers
150 views

Fix horizontal space before lists in LTR context when text direction change within frame

Consider this example, why space before list is not the same in the two cases and how to fix it when I change text direction within frame. \documentclass{beamer} \usepackage[nil,bidi=basic-r,layout=...
user avatar
  • 16k
6 votes
2 answers
282 views

Create test of text direction (luatex)

With luatex there is \textdir to change text direction and tex.textdir which give string representing text direction. I have created this macro to test text direction which supposedly gives TLT ...
user avatar
  • 16k
0 votes
1 answer
313 views

How to complete these side borders in Beamer? [duplicate]

There are some great answers here and here about the same issue but different code samples, in this case I am using a new package beamer-rlCTAN with last update of Babel package, it solves problems ...
user avatar

1
2 3 4 5