On Thu, Jan 30, 2025 at 6:35 PM luigi scarso
On Thu, 30 Jan 2025 at 17:29, Udicoudco
wrote: I think that displacement of a the of a math display is missing when \leqno is used in RTL paragraph.
I attached a patch.
Ok, I will check it asap.
Luigi, after testing all the branches it seems there are a couple more that should be fixed. Sorry for not checking that before. I attached a new patch (to be applied on the current master, not on top of the last one). I have tested all the branches with the following: \catcode`\{=1\catcode`\}=2\catcode`\$=3 \directlua{tex.enableprimitives("",{"Umathquad", "mathdirection", "predisplaydirection"})} \font\tenrm=cmr10 \textfont0=\tenrm \tenrm \hsize=345pt\vsize=550pt\parfillskip=0.0pt plus 1.0fil \parindent=15pt\parskip=0pt plus1pt \Umathquad\textstyle=10pt \mathdirection=0 (l)=true swapdir=true mathdir=TLT $$\predisplaydirection=-1 1 \eqno(1)$$ \mathdirection1 (l)=true swapdir=true mathdir=TRT $$\predisplaydirection=-1 1 \eqno(1)$$ \mathdirection=0 (l)=true swapdir=false mathdir=TLT $$\predisplaydirection=0 1 \leqno(1)$$ \mathdirection1 (l)=true swapdir=false mathdir=TRT $$\predisplaydirection=0 1 \leqno(1)$$ \mathdirection=0 (l)=false swapdir=true mathdir=TLT $$\predisplaydirection=-1 1 \leqno(1)$$ \mathdirection1 (l)=false swapdir=true mathdir=TRT $$\predisplaydirection=-1 1 \leqno(1)$$ \mathdirection=0 (l)=false swapdir=false mathdir=TLT $$\predisplaydirection=0 1 \eqno(1)$$ \mathdirection1 (l)=false swapdir=false mathdir=TRT $$\predisplaydirection=0 1 \eqno(1)$$ \end I also attached the results I get with the current master (display_current.pdf) and with the patch (display_fixed.pdf). Udi