Closed jalilsadati closed 2 years ago
The bug come frombabel
package (bidi=basic
option), I will send a message to babel package maintainer
The bug appears in the first column of array or tabular environment (mathmode)
\documentclass{article}
\usepackage[bidi=basic]{babel}
\babelprovide[import,main]{arabic}
\begin{document}
\[
\begin{array}{cc}
ax+b & f(x)=x^2-3 \\
ax+b & f(x)=x^2-3
\end{array}
\]%
\begin{tabular}{cc}
$ax+b$ & $f(x)=x^2-3$ \\
$ax+b$ & $f(x)=x^2-3$
\end{tabular}
\hrulefill
\selectlanguage{nil}
\[
\begin{array}{cc}
ax+b & f(x)=x^2-3 \\
ax+b & f(x)=x^2-3
\end{array}
\]%
\begin{tabular}{cc}
$ax+b$ & $f(x)=x^2-3$ \\
$ax+b$ & $f(x)=x^2-3$
\end{tabular}
\end{document}
Thanks
in
array
andcases
math environment text direction change to RTL. for example compare these two equations: