Stack Exchange Network

Stack Exchange network consists of 174 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}.

0
votes
1answer
44 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
115 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
63 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
35 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
58 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
285 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
42 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
40 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
35 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
34 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
29 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
56 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
56 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
172 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
366 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
100 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: \...
7
votes
1answer
354 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
180 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
38 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
55 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
168 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
62 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
119 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
132 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
121 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
95 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
47 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
33 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
117 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
0answers
108 views

Can't write Urdu language in IEEE Access Template?

Here is the template file: http://ieeeauthorcenter.ieee.org/create-your-ieee-article/use-authoring-tools-and-ieee-article-templates/ieee-article-templates/templates-ieee-access/ My Code: \...
0
votes
1answer
96 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
49 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
299 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
50 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
491 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
186 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
77 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
197 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
179 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]...
-1
votes
0answers
70 views

How to modify \rightarrowfill to produce dash-space instead of dash arrow?

How can I modify \rightarrowfill so that instead of the arrow it produces a dash space to the end of the line?
2
votes
1answer
356 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
441 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
70 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
417 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
95 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 ...
4
votes
1answer
921 views

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

I have an English document in which I need to inject a few example words from many different languages, including Arabic and Persian. I've sorta gotten it to work with the babel package and the \...
4
votes
1answer
111 views

Strange behavior of Beamer overlay specification in RTL language

The famous [<+->] overlay specification is not working as expected in this very simple MWE right-to-left beamer presentation. MWE \documentclass[12pt]{beamer} \usepackage{polyglossia} \...
1
vote
1answer
271 views

How to use eastern Arabic numerals/numbers in Beamer sections?

First of all, arabic numbers are 1, 2, 3, and so on, but with arabic eastern numbers I mean ١, ٢, ٣, ٤, ٥ and so on. In the below MWE I get section numbers in Arabic. I want them to be written in ...
0
votes
1answer
250 views

How to get alignment of TOC right in a Beamer with RTL language?

I get this bad alignment of bullets inside the TOC using the following MWE: \documentclass[12pt]{beamer} \usepackage{polyglossia} \setmainlanguage[numerals=mashriq,abjadjimnotail=true]{arabic} % ...