10
votes
Accepted
A problem with Hebrew and English underlined text
Put the \textenglish{aaa} block inside the same \uline:
\documentclass[a4paper,numbers=noenddot]{scrartcl}
\usepackage{fontspec}
\PassOptionsToPackage{normalem}{ulem}
\usepackage{ulem}
%%%%%%%%%%%%%%...
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, ...
7
votes
How can I defer the loading of the bidi package?
Usually it's OK to do
\AtBeginDocument{\usepackage{bidi}}
but if for some reason that doesn't work for you an alternative would be to just document to your users that they should load the package in ...
7
votes
Accepted
Inverted parentheses in RTL text in LuaLaTeX
You can use babel. As of version 3.19, you don't even have to mark up for simple things. See §1.27 of the babel manual.
%! TEX program = lualatex
\documentclass{standalone}
\usepackage[nil,bidi=basic]...
7
votes
File `bidi.sty' not found
Since you are using Debian's packages for TeXLive, you need to install the package which contains bidi.sty. You can search for a file at packages.debian.org. If you do this, you will find that bidi....
6
votes
Accepted
Suppress `bidi`'s logo when using `polyglossia`
As long as you load bidi after loading polyglossia but before using any polyglossia commands that would load it as well (essentially any language setting commands), you can pass the logo=off option ...
6
votes
Longtable and tikz
longtable has changed. When a color package is loaded (as it does when you use tikz) then it inserts an additional \color@begingroup. But the bidi code doesn't contain yet the needed correction. Until ...
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}
\...
5
votes
List environments in ArabLuaTeX
Thank you for this report.
I have to confess that list environments have slipped my mind so far! Very sorry about that. The next release of arabluatex, which I hope to publish soon, will support ...
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\...
5
votes
Accepted
Arabic/Russian interlinear text
Since you need to have your \gla lines be in Arabic and you want those lines to be set RTL, it's best to set the whole example in an {Arabic} environment, and then make the other gloss lines to use ...
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 ...
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 ...
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}
...
4
votes
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}
\...
4
votes
Accepted
Numbers in multi-language document
Here your code with polyglossia which require XeLaTeX engine
First you set default language with \setdefaultlanguage[calendar=gregorian,numerals=maghrib]{arabic}, option numerals=maghrib for ...
4
votes
Accepted
How to use csquotes foreignquotes with RTL languages?
I guess csquote got updated in the meantime (using csquotes.sty 2021-02-22 v5.2l). I used the font Linux Libertine O.
"UPDATE" (with the quotes)
(1) I corrected a misplaced dot and an ...
4
votes
Can I make polyglossia use the old-style Hebrew fonts?
I strongly recommend that you not use the Hebrew toolchain from the ’90s. It’s a rigmarole even to install these days.
You already know how you can use any OpenType font that covers Hebrew, such as ...
4
votes
Accepted
How can I defer the loading of the bidi package?
Sit tight and at the end of this answer all will be resolved and packages will be loaded in just the order they like.
Phase 1: From bidi deferral to polyglossia deferral
You are likely failing to ...
4
votes
Accepted
longtable package: Stretch height of last row on page "RTL document"
Interesting, seems you need to put \pdfsavepos after the \write not before it (in input file order)
\documentclass[12pt]{article}
\usepackage[showframe,margin=2cm]{geometry}
\usepackage{longtable}
\...
4
votes
xelatex: bidi problems with RTL character placing
You can get the output you want like this (^^^^202d is the left-to-right-override U+202D):
\documentclass{report}
\usepackage{fontspec}
\setmonofont{Courier New}
\setmainfont{Times New Roman}
\...
4
votes
Accepted
tufte-book & Tectonic (XeTeX) & bidi / polyglossia don't get along
It's a combined problem.
The tufte-book.cls loads tufte-common.def that, when XeLaTeX as processing engine is detected, does \RequirePackage{xltxtra}, which used to be recommended several years ago, ...
4
votes
Accepted
How can I get csquotes and babel to set a display environment RTL (for Hebrew or Syriac)?
I'll turn my comment into an answer because I've found a workaround.
The problem here is csquotes switches the language with otherlanguage*, which it’s just a version as environment of \...
4
votes
Accepted
A bug in LuaTeX?
It seems this is a bug in LuaTeX. Hans Hagen suggested in a response this might be due to the fact I'm pushing the node in vertical mode, and indeed adding \leavevmode solve this example.
But it does ...
4
votes
xfrac reverses numerator and denominator in align environment with babel
Sorry not a real solution but too long for a comment.
xfrac builds in math the fraction by placing a number of \hbox side by side inside a \text command.
In normal text with active TRT direction the ...
3
votes
Accepted
Biblatex authoryear-icomp doesn't work as expected with polyglossia hebrew support on
This issue has now been fixed in biblatex 3.8. You should now get proper tracking of citations within footnotes for RTL languages. See https://github.com/plk/biblatex/pull/576 for details.
MWE:
\...
3
votes
Error related to bidi or arabxetex: Command \XeTeX already defined
@cfr's comments on my question deserve to be upgraded to the answer, which I give here:
The solution, as @cfr suggested, was to stop loading fontspec and bidi independently of arabxetex and removing ...
3
votes
Accepted
tikz-qtree inside gb4e example not centered when bidi is loaded
The original poster is my student, so I met with him in person to debug this problem since none of the commenters were able to replicate the issue he reported.
It turns out that the problem is not ...
3
votes
Beamer themes and bidi problems
LuaLaTeX+Babel+Beamer+Metropolis work quite well for Hebrew presenations: presentation, source.
I haven’t tested it for math, though.
Good luck :-)
Here is a local copy of the source linked above:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bidi × 224xetex × 68
right-to-left × 50
polyglossia × 48
hebrew × 38
arabic × 28
luatex × 19
beamer × 16
xepersian × 16
babel × 13
footnotes × 12
hyperref × 8
table-of-contents × 7
equations × 7
memoir × 7
languages × 7
longtable × 6
tikz-pgf × 5
lists × 5
koma-script × 5
tables × 4
math-mode × 4
fonts × 4
spacing × 4
horizontal-alignment × 4