latex3 / babel

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

When the main language is Hebrew, and the showlabels package is used, the braces surrouding labels of aligned equations face the wrong way #199

Closed EvanAad closed 1 year ago

EvanAad commented 1 year ago

As reported here: https://tex.stackexchange.com/q/665499/21685 when the main, and only language is Hebrew, and the "showlabels" package is used, the braces surrounding labels of equations inside amsmath's align environment face the wrong way.

Following is a minimal working example demonstrating the bug. It was processed with lualatex.

That it is indeed a bug was confirmed by Javier Bezos in the following comment to the post linked above: https://tex.stackexchange.com/questions/665499/numbering-and-labeling-of-equations-in-hebrew-documents#comment1655003_665499

\documentclass{article}

\usepackage[bidi=basic]{babel}
\babelprovide[main,import]{hebrew}
\babelfont{rm}[Renderer=Harfbuzz]{FreeSans}

\usepackage{amsmath}

\usepackage{showlabels}

\begin{document}

\begin{align}
x &= y + z\label{A}
\end{align}

\end{document}

Following is a screenshot of the relevant part of the resulting PDF file.

AlignLabels

Variations

The bug manifests also in tandem with amsmath's multline environment. However, it does not manifest in tandem with the equation environment.

jbezos commented 1 year ago

I‘m closing this issue because it’s now listed in Enhancements requests. This doesn’t mean it’s rejected, just moved to a specific page for enhancements.