Hot answers tagged

10 votes
Accepted

polyglossia or bidi bug: [\d\.] gets inverted to [\.\d]

bidi tests for \if@Latin, so you can get around the problem by setting it to true: \documentclass{book} \usepackage{polyglossia} \setotherlanguage{hebrew} \makeatletter\@Latintrue\makeatother \...
Ulrike Fischer's user avatar
10 votes

Oops! you have loaded package pgf after bidi package

You are probably not loading pgf directly; it's more likely that you are loading tikz or pgfplots, or some other package that depends on tikz. Just make sure you load this before loading bidi. Since ...
Alan Munn's user avatar
  • 215k
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
  • 43.3k
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
8 votes

Order of words disturbed by using polyglossia with rtl language?

That looks like a bug in bidi (egreg thinks) but you can force things back with \beginL \documentclass{article} %\usepackage[T1]{fontenc}% don't use fontenc with xetex \usepackage{amsmath} \...
David Carlisle'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
  • 25.6k
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
  • 25.6k
6 votes
Accepted

Mixing Hebrew and English bibliographies?

An approach using XeLaTeX with polyglossia and biblatex. %\RequirePackage{filecontents} \begin{filecontents}{\jobname.bib} @article{EnglishExample, title={Example}, author={John ...
Johannes_B's user avatar
  • 24.1k
6 votes
Accepted

Matching alignment of two minipages

Phew, sends you dizzy working out which end is the start of the line:-) The problem is not indentation but space tokens making horizontal space. A couple in your document (added % but mostly in the ...
David Carlisle's user avatar
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
  • 215k
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
Accepted

Creating a LaTeX Table from a Microsoft Word Document

As it turns out, using a table that spans across pages and is also enclosed in the multicol environment is almost impossible. I managed to do everything, except making the table span two columns in ...
Alenanno's user avatar
  • 37.1k
5 votes
Accepted

Order of words disturbed by using polyglossia with rtl language?

It's what I think to be a bug in amstext-xetex-bidi.def (part of the bidi bundle) that does \ProvidesFile{amstext-xetex-bidi.def}[2013/04/04 v0.1 bidi adaptations for amstext package for XeTeX engine]...
egreg's user avatar
  • 1.1m
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
  • 215k
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

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

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
  • 25.6k
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

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
  • 16.8k
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
  • 16.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
  • 43.3k
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.2k
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.1m
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
  • 9,406

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