latex3 / babel

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

Reversed numbering parentheses for alignat env in RTL context (lualatex) #208

Closed seloumi closed 12 months ago

seloumi commented 1 year ago

With this example of alignat environement parentheses of numbering are reversed, on the contrary parentheses in align environment are fine

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

\begin{document}

\begin{alignat}{2}
& u=\arctan{x}       &\qquad& v=x\\
& du=\frac{1}{1+x^2} &&       dv=1
\end{alignat}

\begin{align}
 u&=\arctan{x}   \\
 du&=\frac{1}{1+x^2} 
\end{align}

\end{document}