Skip to main content
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} %%%%%%%%%%%%%%...
Davislor's user avatar
  • 45.8k
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, ...
Alex Recuenco's user avatar
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 ...
David Carlisle's user avatar
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]...
David Purton's user avatar
  • 26.5k
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....
David Purton's user avatar
  • 26.5k
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 ...
Alan Munn's user avatar
  • 221k
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 ...
Ulrike Fischer's user avatar
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} \...
Ulrike Fischer's user avatar
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 ...
Robert Alessi's user avatar
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\...
David Carlisle's user avatar
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 ...
Alan Munn's user avatar
  • 221k
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 ...
Henri Menke's user avatar
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 ...
David Purton's user avatar
  • 26.5k
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} ...
Ulrike Fischer's user avatar
4 votes

Tex studio- Bidirectional

use ctrl+shift+M for $*$ snippet.
Narbe Aboolian's user avatar
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} \...
Salim Bou's user avatar
  • 17.1k
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 ...
Salim Bou's user avatar
  • 17.1k
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 ...
Simon Dispa's user avatar
  • 39.8k
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 ...
Davislor's user avatar
  • 45.8k
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 ...
einpoklum's user avatar
  • 12.5k
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} \...
David Carlisle's user avatar
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} \...
Ulrike Fischer's user avatar
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, ...
egreg's user avatar
  • 1.2m
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 \...
Javier Bezos's user avatar
  • 10.8k
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 ...
Udi Fogiel's user avatar
  • 4,734
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 ...
Ulrike Fischer's user avatar
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: \...
David Purton's user avatar
  • 26.5k
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 ...
Alex Roberts's user avatar
  • 1,379
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 ...
Jason Zentz's user avatar
  • 4,178
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: ...
Júda Ronén's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible