[XeTeX] Bidi equation numbering
Aryeh Weiss
aryeh at cc.huji.ac.il
Wed Oct 7 15:11:52 CEST 2009
Thank you for your reply. I commented out the added equation defs, and
added the normalfont def as follows:
\newfontfamily{\H}[Scale=0.9]{Lucida Grande}
\let\normalfont\H
where \H is my Hebrew font.
The output has the correct numbers, but the parenthesis are still
backward )1( and )2(.
--aryeh
Vafa Khalighi wrote:
> Thank you for your reply. Concerning the )I( appearance, Mehdi Omidali
>
> sent me a patch that fixed this, so that the parentheses now appear
> correctly.
>
> This is the patch:
>
> \makeatletter
> \def\equation{\beginL$$\refstepcounter{equation}}
> \def\endequation{\eqno \hbox{\@eqnnum}$$\endL\@ignoretrue}
>
> \def\@eqnnum{{\normalfont \normalcolor
> \if at RTL <http://tug.org/mailman/listinfo/xetex>\beginR\fi(\theequation)\if at RTL <http://tug.org/mailman/listinfo/xetex>\endR\fi}}
>
>
> Do not do that. That is not a patch. This is the part of the code from
> new experimental version of bidi package but this will make trouble
> because in v1.0.3, amsmath is loaded by defualt and that definition
> makes things broken. In the newest version of bidi (experimental one),
> amsmath is not loaded so that above definition fixes the issue of the
> placement of equation numbers.
>
> I tried the leqno option, but the equation number remained on the right.
> I found that this is caused by the patched equation environment
>
> definition. If I remove it, then the leqno option works, but then I also
>
> That is eaxctly one side effect of putting the above code in v1.0.3 as I
> have explained above. Delete above code from your document, use leqno
> option so equations appear on the left. About the )I(, I need to say
> that you need to define your RTL font to be the \normalfont, otherwise
> that happens.
>
> So if \hebfont stands for font of your hebrew document, then say
> \let\normalfont\hebfont or something similar.
>
> So what I still dont know is now to pick up the [leqno] flag to do it
> more elegantly than defining two separate equation environments.
>
>
> No need for the codes, simply use bidi without adding extra codes, but
> define your hebrew font to be your \normalfont and you should be fine.
>
>
>
>
> --
> Vafa
--
Aryeh Weiss
School of Engineering
Bar Ilan University
Ramat Gan 52900 Israel
Ph: 972-3-5317638
FAX: 972-3-7384050
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xetextest-1.pdf
Type: application/pdf
Size: 46063 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20091007/44bb3e99/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xetextest-1.tex
Type: application/x-tex
Size: 2266 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20091007/44bb3e99/attachment-0001.tex>
More information about the XeTeX
mailing list