Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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}.

1
vote
2answers
84 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=...
7
votes
2answers
149 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 ...
0
votes
1answer
28 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 ...
0
votes
2answers
49 views

How to make parts and sections at the right side of the document?

I'm writing a document at Hebrew at scrartcl class (KOMA-script) and the parts and the sections are at the left side when I writing at English: How can I move it to the right? (like at scrbook - ...
2
votes
1answer
32 views

eso-pic together with bidi

I built a documentclass which uses the eso-pic package to place content on each page relative to the top left corner. Now I used this documentclass in a document which is (partly) hebrew. For hebrew I ...
1
vote
1answer
59 views

\hangindent and RTL text

while \hangindent works perfectly for left to right text, it does not work for RTL text, with bidi. Cf this example running with xelatex \documentclass{article} \usepackage{polyglossia} \usepackage{...
0
votes
1answer
56 views

Equation Defintion Alignment Using Xepersian

The following code will define a new environment which will arrange the definitions of equations. I want the explanations start from right side, but the equations inside definition align left and ...
2
votes
0answers
125 views

Create an adapted \color macro for RTL mode (pdflatex and xelatex)

This is a complement to these questions: Colors bizarre results with right to left text Change color method used with beamer My aim is to create a macro like \color which can be used in RTL mode (...
6
votes
1answer
75 views

Reverse direction of writing automatically with RTL script

A new interesting feature with latest release of babel a lua algorithm which detect the beginning and the end of Arabic sentences and revers direction of writing without adding explicit markup (\...
2
votes
1answer
50 views

Word wrapping in XeLateX RTL Urdu occurring right not left

Why does the following Urdu text seem to be word wrapped on the right and not left? If a word cannot be adjusted , shouldn't it be jutting out into the left margin, not the right? Am I missing some ...
2
votes
1answer
68 views

Hyperref form with RTL main language like Arabic

I would like to typeset an electronic form with Arabic as the main language and English as another language in the same document. I used the xetex engine without success, the layout was messy as you ...
8
votes
1answer
355 views

Arabic Numerals in Arabic Text

In the document below, the text in Arabic is from right to left as it should be, but the numbers inside \textLR{} are also from right to left, while I would like to have them from left to right, like ...
2
votes
1answer
46 views

Hebrew within sourcecode

I need to include LaTeX source code, which contains Hebrew text, within an Hebrew document. I tried doing so within a verbatim environment, but Hebrew words appear in opposite order. Any solution ...
2
votes
1answer
41 views

longtable package: Stretch height of last row on page “RTL document”

I took a look at this nice answer longtable package: Stretch height of last row on page and I need to apply this answer in my arabic document (right to left document). The problem that I can not get ...
0
votes
1answer
38 views

Beamer overly for table of contents in a RTL presentation

There is the same question Beamer table of contents overly working properly (\pausesections displays two columns simultaneously in TOC) for LTR with this trick: \makeatletter \newcommand{\trickbeamer}...
1
vote
1answer
48 views

RTL frametitle on beamer

Based on this question here How to reduce frame title box size in a special case frametitle is \flushright but text direction is LTR not RTL although i add \textarabic{test} % !TeX TS-program = ...
1
vote
1answer
36 views

Add indentation to subsection for RTL table of content on beamer

Based on this answer here "RTL table of content on beamer" I would like to add indentation to \subsection % !TeX TS-program = xelatex \documentclass{beamer} \useinnertheme[shadow=true]{rounded} \...
0
votes
1answer
88 views

RTL table of content on beamer

I used this answer related to titlebox size, but this causes the TOC be centered or justified if i add \flushright. This code solve the issue partially but suppress numbering bullets (fig1): \...
2
votes
1answer
65 views

Issue with RTL text in Polyglossia and Soul

I am trying to use the Soul package with Polyglossia to emphasize with letter spacing (this is a traditional typesetting technique in the language I'm using, and the typeface I'm using doesn't have ...
3
votes
1answer
177 views

How to find the length of last line of a right to left paragraph

This question is a follow up of my previous question Colors bizarre results with right to left text, \color command works well in right to left text if included at the beginning of paragraph, then I ...
5
votes
1answer
373 views

Arabic Right to Left using Luatex

I need to write some text in arabic using Latex. It is important for me to compile the tex file using Lualatex (here I report a minimal working example, but the document class I am originally using ...
4
votes
1answer
107 views

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

When the last word(s) in RTL sentence is an English one, the point at the end of the sentence (also termed full point/full stop/period) is in the wrong location. The MWE is as follows: \...
8
votes
1answer
375 views

Colors bizarre results with right to left text

I have this example \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{fontspec} \usepackage{bidi} \setmainfont{Amiri} \parindent=0pt \begin{document} {\color{red} text from left to ...
7
votes
2answers
190 views

LTR text where it should be RTL (right to left) in beamer list second level

I have this example of writing right to left list in beamer \documentclass{beamer} \usefonttheme{serif} \usepackage{bidi} \setbeamertemplate{enumerate item}[circle] \setbeamertemplate{itemize ...
1
vote
1answer
43 views

acmart abstract disappears by using package 'polyglossia'

When i include the package \usepackage{polyglossia} the abstract disappears.I want to write Urdu language in-between English lines. Urdu appears fine but the abstarct is gone. This is my code. \...
2
votes
1answer
59 views

Vertically adjust example number in expex

The example number in the expex package can be adjusted horizontally with the numoffset and textoffset commands, as documented on page 11 of the documentation (links to PDF). But how can it be ...
0
votes
1answer
205 views

unable to set direction right to left in arabic text

I need to insert arabic text. It works fine but text display is from left to right. How can I deal with that. \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage{arabic} \...
3
votes
1answer
65 views

bidi: Strange error tkz-tab package with texlive 2018

I have texlive 2018 on my pc and I'm facing issues with tkz-tab package which were not shown with texlive 2017 ! No room for a new \count . \ch@ck ...\else \errmessage {No room for a new #3} ...
1
vote
0answers
29 views

Using \left( \right) in different lines in align environment [duplicate]

I would like to produce an equation over two lines with a bracket opening in the first line and closing in the second line. Unfortunately, however, using the "\left" and "\right" commands (to have the ...
1
vote
1answer
208 views

Right-Left Control Character in Arabic when using Brackets

I am trying to enclose arabic text in Parentheses but the left parentheses prints before the first word. Example: %!TEX TS-program = xelatex \documentclass[14pt]{article} \usepackage{polyglossia} \...
3
votes
1answer
171 views

Linguistic trees and right to left

\documentclass[12pt]{article} \usepackage{csvsimple,filecontents} \usepackage{fontspec} \usepackage[american]{babel} \usepackage{libertine} \newfontfamily\arabicfont[Script=Arabic,Scale=2]{Amiri} \...
3
votes
1answer
126 views

Big gap between two parboxes in modified RTL expex environment

Below are several sets of identical side-by-side parboxes; the right parbox contains an interlinear gloss (expex) and the left contains regular text. The top three sets are before the modified expex ...
2
votes
1answer
99 views

Right to Left multicolumns not working (compatibility issue with ExPeX?)

According to the multicol documentation, on page 5 section 2.5, you can switch to right-to-left columns by invoking \RLmulticolcolumns. I have done this, yet it doesn't work. Is this a bug, or am I ...
0
votes
0answers
56 views

LyX, Hebrew (RTL) and footnotes

I'm using LyX with Hebrew. I noticed that LyX always messes up the footnote line alignment on the very last page. For example, here's what happens with a 3 page document that has footnotes on every ...
1
vote
0answers
35 views

Help on theorem environment [closed]

Could someone help me create these (theorem) environments with latex, with support for RTL language please?
3
votes
1answer
132 views

Change format of section numbering in Lyx

I am using Lyx to write a document in Arabic Language. My problem in numbering of the sections and subsections. In arabic, text direction is from right to left. So when I created sections and ...
0
votes
1answer
107 views

Where is babel bidi support and font loading documented?

Closely Related: - https://tex.stackexchange.com/a/355429/153289 - Cannot produce english-greek document with xelatex - Greek and Hebrew in a single pdflatex babel document In closely related ...
1
vote
0answers
50 views

Number+period positions flipped - only with some TeXLive versions

I'm compiling the following document: \documentclass{minimal} \RequirePackage{fontspec} \RequirePackage{polyglossia} \setmainlanguage{english} \setotherlanguage{hebrew} \begin{document} This ...
1
vote
2answers
318 views

Write Urdu language in ACM template

How can i write Urdu language in ACM Template? Here's the template on Github and here it is on Overleaf
0
votes
0answers
52 views

How to change the order of number digits? [duplicate]

How can I change text to be left aligned? So that, instead of 1.4 it will show 4.1.
10
votes
1answer
535 views

tikz: Right to left text within text along path

I have this example to write text along path using decorations.text library, and I want to insert arabic text starting from right to left \documentclass[border=5mm]{standalone} \usepackage{tikz} \...
6
votes
1answer
192 views

Right to left week list style in tikz calendar

I found this question vertical week list in TikZ calendar and I need to create a similar style RTL week list with row for week starting from right side Here an example with xelatex \documentclass[...
3
votes
1answer
80 views

Change “twocolumn” option to obtain right to left columns

When using twocolumn option writing on paper start from left side then the right side, my wish is change twocolumn option to start writing on paper from right side \documentclass[twocolumn]{...
4
votes
2answers
215 views

Bidi algorithm and xelatex

Is there a way to make xelatex follow the standard bidi algorithm? I'm using setup similar to this: \documentclass[12pt]{article} \TeXXeTstate=1 \usepackage{polyglossia} \setmainfont{Linux Libertine ...
1
vote
1answer
185 views

Making enumerate items align at left while using xepersian

I am in a trouble to make enumerated items at the left: \documentclass{article} ‎‎ \usepackage{xepersian}‎‎‎ \usepackage{amsmath,amsthm,amscd,amsfonts,amssymb,enumerate}‎ \settextfont[Scale=1.1]...
2
votes
1answer
390 views

XeLaTeX, minted and hebrew

I try to use minted to typeset code \documentclass{article} \usepackage{fontspec} \usepackage{minted} \setmonofont{Cousine}%%https://www.fontsquirrel.com/fonts/cousine > font which have monospace ...
4
votes
1answer
451 views

How can I input Uyghur language in LaTeX?

I have been learning LaTeX for several weeks and now I am confident enough to write some academic papers in English. However, when I tried to input my mother language - Uyghur (Uighur), I had some ...
1
vote
1answer
73 views

Properly right-aligning Hebrew quotation at the end of a sentence on a new line

I'm having a minor issue with Hebrew quotations in a document I'm typesetting. I have quotations from the bible in the form "Book chapter:verse: Hebrew text". When the Hebrew text continues on the ...
2
votes
1answer
446 views

How to typeset Arabic text using ConTeXtgarden?

I am new to ConTeXt world, however what I need to achieve is simply to be able to typeset Arabic/Hebrew text along with English text (Bidi) in ConTeXt. I came across this part of the context garden ...
2
votes
1answer
103 views

Generating a table from values in CSV file with bidirectional text

I want to generate a table from values inside csv file which have the following properties: They include bidirectional text; some columns have English text (a left-to-right language) while others ...