A Short description of the problem
In a document whose main language is Hebrew, I'd like subequation
s to be numbered using the Hebrew, rather than the English, alphabet, and using right-to-left directionality, as in the following screenshot:
This screenshot was obtained from the one in the next section, by cutting-and-pasting the numberings from the PDF resulting from the following code:
\documentclass{article}
\usepackage[bidi=basic,english,hebrew,provide=*]{babel}
\babelfont{rm}[Renderer=HarfBuzz]{FreeSerif}
\usepackage{amsmath}
\begin{document}
$(\text{$1$א})$\par
$(\text{$1$ב})$\par
$(\text{$2$א})$\par
$(\text{$2$ב})$
\end{document}
A demonstration of the problem by way of a minimal working example
I saved the following LaTeX code in the file ~/Test.tex
.
\documentclass{article}
\usepackage[bidi=basic,english,hebrew,provide=*]{babel}
\babelfont{rm}[Renderer=HarfBuzz]{FreeSerif}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{align}
a&=b+c\\
d&=e+f
\end{align}
\end{subequations}
\begin{subequations}
\begin{alignat}{2}
u&=v&&-w\\
x&=y&&-z
\end{alignat}
\end{subequations}
\end{document}
The code uses the babel
package to configure the document's main language as Hebrew, and secondary language as English, and then, in the document's body, creates two sets of subequation
s: one that wraps about an align
environment, and one that wraps about an alignat
environment.
I then executed the following commands in the Terminal.
> cd ~
> lualatex Test
This resulted in the creation of the file ~/Test.pdf
, which, when opened in a PDF viewer, displayed as follows. (I screenshot only the relevant part of the display.)
As can be seen, the numberings use the English alphabet, and are directed from left-to-right in the sense that the numeric part of the numbering is to the left of the alphabetic part.
Question
How can I get subequation
numbering to use the Hebrew alphabet? Moreover, the directionality of the numbering should be right-to-left, so as to print the alphabetic part of the numbering to the left of the numeric part of the numbering, as shown in the first screenshot of this post.
Remarks
I use the babel
+LuaLaTex combo to typeset Hebrew documents. A solution that requires a different combo, e.g. polyglossia
+XeLaTeX won't be considered a suitable solution.