Skip to main content

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
53 views

eqref fails in local compilation, but works on Overleaf

I am trying to transition from Overleaf to a local workspace and set up VSCode with the Latex Workshop extension as my Latex IDE, and I faced a weird problem. I work on Hebrew documents and I use ...
Shai Avr's user avatar
  • 715
1 vote
1 answer
62 views

Lineno line numbers render incorrectly with 2 columns, Polyglossia and RTL language

I'm trying to produce a 2-column paper with line numbers on the sides using the lineno package. However, I need to include some examples written in a right-to-left language (Urdu in my case, but any ...
Tuetschek's user avatar
  • 253
2 votes
2 answers
135 views

Inline equation breaks when adding Hebrew text with the witharrows package

I use Latex and babel to do my homework in Hebrew. I also use the witharrows package to make arrows explaining steps in equations. It usually works fine: However, when I try to add Hebrew text to ...
Shai Avr's user avatar
  • 715
7 votes
3 answers
494 views

The cancel package doesn't work sometimes in Hebrew

I use babel to write documents in Hebrew, and I use the cancel package to draw lines on terms in an equation for cancelation. Until now, this has been working fine. Recently, I tried to cancel a term, ...
Shai Avr's user avatar
  • 715
3 votes
2 answers
59 views

Text in `\underbrace` isn't centered in Hebrew

I am using babel to make Hebrew documents, and I try to use the \underbrace command to put some information below an equation. Doing it in English works as expected, but when I do that in Hebrew, the ...
Shai Avr's user avatar
  • 715
3 votes
1 answer
99 views

How to use a consistent language for headers and footers with babel?

I have a Hebrew document with some English parts, and I am using the fancyhdr package to have headers and footers. I am using \begin{otherlanguage}{english} \end{otherlanguage} for my English parts. ...
Shai Avr's user avatar
  • 715
1 vote
0 answers
34 views

Margin notes don't show up in a Hebrew document

I am working on a Hebrew document, and I want to add margin notes. When I do this in an English document, everything works fine: \documentclass[a4paper, oneside, 12pt]{book} \usepackage{geometry} \...
Shai Avr's user avatar
  • 715
0 votes
1 answer
85 views

RTL Coloring Mid-Line spreads to the entire and preceding line of output

I'm writing in Hebrew script on Overleaf using XeLaTeX and need to color different languages differently. The text יתברך ויתרומם should be colored in dark blue, but this is the result: I'm using bidi ...
Ian Jacobs's user avatar
3 votes
1 answer
49 views

LTR item in beamer-rl

I am creating a presentation in beamer-rl. sometimes I have English item but the itemize environment is RTL. This is an example: \documentclass[babel={layout=lists},9pt]{beamer-rl} \babelprovide[...
Erfan Riahi's user avatar
4 votes
3 answers
419 views

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

I am using fontspec, Polyglossia and XeLaTeX to typeset a document in mostly English, but with a few Urdu phrases using the NotoNastaliq font. The problem is that the Urdu phrases get rendered ...
Emad Masroor's user avatar
0 votes
2 answers
52 views

How to order multiple columns right to left in Beamer?

I am trying to display some Hebrew words in three columns on a Beamer slide. Because Hebrew is a right-to-left language, the columns should be ordered right to left. However, the columns are ordered ...
jejb's user avatar
  • 107
0 votes
2 answers
102 views

How can I align equations to the left in latex [duplicate]

How can I align equations to the left in latex? this is my code \documentclass[10pt]{article} \usepackage{nccmath} \begin{document} \begin{fleqn}[\parindent] \begin{equation}\label{eq51} \begin{...
Milito's user avatar
  • 45
0 votes
0 answers
50 views

Section and subsection numbers are reversed with Hebrew babel

I use latex with the babel package to write my assignments in university in Hebrew, which is an RTL language. Unfortunately, I found that my current setup causes the numbers of sections and ...
Shai Avr's user avatar
  • 715
1 vote
1 answer
79 views

Context non equal space after itemize label in RTL document

Why in this example spaces after ) of inline itemize environment are not equal, and how to fix this? \setuppapersize[A4] \mainlanguage[arabic] \setupdirections[bidi=global,method=one] \setupalign[r2l] ...
Salim Bou's user avatar
  • 17k
1 vote
0 answers
135 views

Context overlapping headertexts with bidi=global

In this example of RTL document I have added the line \setupdirections[bidi=global] and this produce overlapped text in the header (the same example would have given a correct result with TL 2022) ...
Salim Bou's user avatar
  • 17k
0 votes
0 answers
63 views

TeX capacity exceeded error with polyglossia

I'm using Overleaf in XeLaTeX to work with various different Semitic languages, and I'm trying to typeset their scripts. I've been using ArabTex and cJHebrew for Arabic and Hebrew respectively, but I'...
David Wilson's user avatar
2 votes
2 answers
104 views

pspicture strange effect with \textdir TRT in an RTL document

In this example, when adding the command \textdir TRT the picture is shifted to the right, and I can't understand what's going on here, if we uncomment \textdir TLT we get a correct result \...
Salim Bou's user avatar
  • 17k
0 votes
0 answers
28 views

The footer on my flashcards are not aligned

I'm using the xepersian package to write Persian language flash cards. I want to have a footer on the front and the back of the card that shows what particular exercise this word comes from (e.g., &...
Wouter's user avatar
  • 11
0 votes
0 answers
68 views

align environment isn't centered with lualatex?

This is a follow-up question to my previous question where I encountered an issue with tikz arrows (specifically with the witharrows package which uses tikz) combined with polyglossia and xelatex ...
Shai Avr's user avatar
  • 715
6 votes
1 answer
131 views

witharrows package reverses text in RTL language?

I do my homework in Latex, and I recently learned about the witharrows package which allows me to draw arrows between lines explaining what I did there. I find this very helpful for my homework ...
Shai Avr's user avatar
  • 715
2 votes
1 answer
89 views

TOC glitch in mixed English/Hebrew document using polyglossia

I'm using xelatex with polyglossia to typeset a mixed English/Hebrew document, with the majority of the text in English. The body of the document is fine. The table of contents is the problem. I run ...
Scott Hazelhurst's user avatar
1 vote
1 answer
103 views

Some Fonts Do Not Work Properly With `multicols` and `babel`

I initially posted this on the EB Garamond repository, but was suggested to ask it here instead. This is an issue that occurs with only two fonts that I tried: EB Garamond and Junicode Two Beta. If ...
Amarakon's user avatar
  • 165
1 vote
2 answers
50 views

Bad behavior of xepersian with beamer itemize item pause

Why xepersian breaks item of itemize environment into two pieces and last part of that sticks with previous pause! (see attached gif). (Don't worry about font) Compile specifications: xelatex + ...
C.F.G's user avatar
  • 552
4 votes
2 answers
78 views

Tikz sweeps location of text inside node with Hebrew

For some reason the text of the second node is not printed inside the box of the node, but on the complete opposite side of the tikzpicture. Any idea on how to fix it? \documentclass{beamer} \...
tush's user avatar
  • 1,125
1 vote
1 answer
58 views

How to embed English verbatim text inside a Hebrew paragraph?

A brief description of the problem How can I embed verbatim English text in a Hebrew paragraph? A demonstration of the problem by way of a minimal working example Consider the following LaTeX code, ...
Evan Aad's user avatar
  • 11.1k
5 votes
1 answer
129 views

Does XeLaTeX modify the \beginR premitive?

Consider the following code \TeXXeTstate=1 Hello World \beginR Hello World\endR \bye Which produce the following document with either XeTeX or pdfTeX Now, the out put of the following code is the ...
Udi Fogiel's user avatar
  • 3,919
2 votes
1 answer
59 views

How to make the nup layout of includepdf RTL? (pdfpages)

I am trying to print out a cheatsheet of sorts with the content of multiple recitations. pdfpages should be able to do exactly what I need, with the 'nup' setting of the \includepdf tag. However, I'm ...
Hitori's user avatar
  • 23
7 votes
2 answers
345 views

Shifted hlines in tblr tabular in RTL context

I'm trying to test tblr tabular provided by tabularray package in an RTL context by adding \textdir TRT (lualatex engine), everything looks fine except for this issue shown in this example \...
Salim Bou's user avatar
  • 17k
2 votes
2 answers
115 views

How to change the language and directionality of a tabularray in a Hebrew document?

A demonstration of the issue by way of a minimal working example I saved the following LaTeX code in the file ~/Test.tex. \documentclass{article} \usepackage[bidi=basic,english,hebrew,provide=*]{babel}...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
91 views

Why link box appears on the left side when it should appears on the right inside minipage

With this example I have created a clickable area on top of an image in right to left context, the result is fine outside minipage (clickable box appears on the right). But when repeating the same ...
Salim Bou's user avatar
  • 17k
2 votes
1 answer
68 views

LuaTeX's \textdir primitive fails a string-comparison test

A demonstration of the problem by way of a minimal working example I saved the following LaTeX code in the file ~/Test.tex. \documentclass{article} \usepackage{ifthen} \begin{document} \the\textdir =% ...
Evan Aad's user avatar
  • 11.1k
1 vote
0 answers
64 views

How to find out if the direction of text flow is right to left or left to right?

Are there any LaTeX commands provided either by LaTeX, or by the article class, or by the babel package, or by the luatex engine, or else by some other babel+luatex compatible package, that enable a ...
Evan Aad's user avatar
  • 11.1k
2 votes
1 answer
149 views

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

I searched in babel manual for a list of all languages with RTL script supported by the package and I found only two macros bbl@alscripts and bbl@rscripts which are defined as follows: \def\bbl@...
Salim Bou's user avatar
  • 17k
0 votes
1 answer
70 views

Loop in a specific list to define class options

I have a class beamer-rl to create beamer presentation for RTL languages (like persian) and I need a way to include RTL language as a class option like this \documentclass[persian]{beamer-rl} So class ...
Salim Bou's user avatar
  • 17k
1 vote
0 answers
49 views

How to use \boxdir primitive

From luatex manual version 1.15 (page 43): The direction related primitives \pagedir, \bodydir, \pardir, \textdir, \mathdir and \boxdir are now core primitives. I wanted to know how to use the ...
Salim Bou's user avatar
  • 17k
1 vote
1 answer
106 views

Why can't Hebrew be passed as an option to the babel package when the document class is beamer (beamer-rl)?

A couple weeks ago I asked whether it was possible to specify Hebrew as an option to the babel package, rather than specifying it with the \babelprovide command. A comment from Javier Bezos indicated ...
Evan Aad's user avatar
  • 11.1k
1 vote
0 answers
52 views

Reversed numbering parentheses for alignat env in RTL context (lualatex)

With this example of alignat environement parentheses of numbering are reversed, on the contrary parentheses in align environment are fine \documentclass{article} \usepackage{amsmath,amsthm} \...
Salim Bou's user avatar
  • 17k
3 votes
2 answers
322 views

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

The following question can be seen as a continuation of this one to the case that the document class is beamer rather than article. Inside a Hebrew presentation I wish to have the (non mandatory!) ...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
120 views

How to localize beamer's mathematical blocks to Hebrew?

The following LaTeX code was saved in ~/Test.tex. \documentclass{beamer-rl} \usepackage[bidi=basic]{babel} \babelprovide[main, import]{hebrew} \babelfont{rm}{FreeSerif} \babelfont{sf}{FreeSans} \...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
75 views

hyphenation with smallcaps and other formatting in bidi RTL environment

When smallcaps, bold, or italics are used for part of a hyphenated word in a right-to-left bidi environment, weird things happen. The following is a MWE of what I'm noticing (compiled with XeLaTeX): \...
Jonathan W.'s user avatar
0 votes
2 answers
59 views

Contents of sidewaysfigure env is out of page with TRT pagedir

With this example (lualatex with TRT pagedir) the image does not appear. how to solve the issue? \documentclass{article} \usepackage{graphicx} \usepackage[demo]{rotating} \pagedir TRT \bodydir TRT \...
Salim Bou's user avatar
  • 17k
1 vote
2 answers
82 views

How to make Hebrew bibliographic entries right-aligned and English bibliographic entries left-aligned?

The following BibTeX document is saved in ~/TestBib.bib. @book{silberstein, author = {Shel Silverstein}, title = {The Giving Tree}, year = {1964}, langid = {english} } @book{goldberg, ...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
100 views

1. Why can't hebrew be passed as an option to babel? 2. Is \babelprovide's import option necessary? 3. Why is \babelprovide's main option necessary?

The following questions were spurred by mere curiosity, not by any practical problem. Part 1 The following LaTeX code compiles successfully with lualatex. \documentclass{article} \usepackage[french]{...
Evan Aad's user avatar
  • 11.1k
1 vote
1 answer
201 views

How to set up a Hebrew font given as four .ttf files defining four variants: regular, bold, oblique, and bold & oblique, using babel+lualatex?

I have downloaded four .ttf font files for the Hebrew language. The files define variants of the same font. The variants are: regular, oblique, bold, and bold & oblique. My LaTeX document uses the ...
Evan Aad's user avatar
  • 11.1k
0 votes
2 answers
249 views

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

The following question builds on this answer. The following LaTeX document is saved in a file whose path is ~/test.tex. \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \...
Evan Aad's user avatar
  • 11.1k
2 votes
1 answer
85 views

cleveref with Hebrew

The following LaTeX code is saved in the file ~\test.tex: \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} %\usepackage{polyglossia} %\setmainlanguage{hebrew} \usepackage{...
Evan Aad's user avatar
  • 11.1k
0 votes
2 answers
70 views

The showlabels package results in a compilation failure when a Hebrew document is rendered with polyglossia+xelatex

The following LaTeX code is saved in the file ~\test.tex: \documentclass{article} \usepackage{amsthm} \newtheorem{theorem}{Theorem} \usepackage{polyglossia} %\setmainlanguage{hebrew} %\setmainfont{...
Evan Aad's user avatar
  • 11.1k
2 votes
3 answers
195 views

How to create a proof environment with a different typeset name in addition to the original proof environment, in a non-English language?

This post is a direct extension of this one. How can I define a proof environment with a different typeset name than "Proof" in a non-English document in addition to the original proof ...
Evan Aad's user avatar
  • 11.1k
1 vote
1 answer
130 views

Horizontal positioning of a TikZ Picture with a fitted frame in a right-to-left polygossia document

The following LaTeX code is saved in the file ~\test.tex: \documentclass{article} \usepackage{lipsum,tikz} \usetikzlibrary{fit} \iffalse \usepackage{polyglossia} \setmainlanguage{hebrew} \setmainfont{...
Evan Aad's user avatar
  • 11.1k
0 votes
1 answer
77 views

Beamer sweeps direction for right to left language inside itemize

I want to write a beamer document in Hebrew. I noticed that it changes some environments from right-to-left to left-to-right. For example: % !TEX TS-program = xelatex % !TEX encoding = UTF-8 \...
tush's user avatar
  • 1,125

1
2 3 4 5 6