latex3 / babel

The babel system for LaTeX, LuaLaTeX and XeLaTeX
LaTeX Project Public License v1.3c
125 stars 34 forks source link

babel with bidi=basic option produce reversed math in first column of array and tabular #161

Closed jbezos closed 2 years ago

jbezos commented 2 years ago

See tex.stackexchange.com:

\documentclass{article}
\usepackage[bidi=basic]{babel}
\babelprovide[import,main]{arabic}
\babelfont{rm}{FreeSerif}

\begin{document}

\begin{tabular}{cc}
$ax+b$  &  $ax+b$\\   % (renders b + xa ax + b)
a $ax+b$  &  $ax+b$\\ % (ok)
$ax+b$  &  $ax+b$\\   % (renders b + xa ax + b)
و $ax+b$  &  $ax+b$   % (ok)  
\end{tabular}

\end{document}
seloumi commented 2 years ago

I have opened an issue three weeks ago, see #158

jbezos commented 2 years ago

Oops. Sorry. I didn't realize it was the same issue.