[XeTeX] bidi, math, and amstext

Vafa Khalighi tex.ctan at gmail.com
Sat Sep 27 06:24:40 CEST 2014

Well, I suppose you do not use low-level commands like \RL to typeset say
Arabic. Do you?

One usually defines an environment like:


or if you are defining commands:

\newcommand*{\textarab}[1]{\RL{\@Latinfalse\arabicfont #1}}

The definition of \RL is somehow special and should not be redefined like
you did.

On Sat, Sep 27, 2014 at 8:15 AM, maxwell <maxwell at umiacs.umd.edu> wrote:

> On 2014-09-26 16:01, Vafa Khalighi wrote:
>> Not a bug. bidi package has a boolean \if at Latin. The boolean should be
>> set
>> in higher level packages (like polyglossia) to true for non-RTL scripts
>> and
>> false for RTL scripts. Its initial value is false so that explains the
>> behaviour.
> Since we're not using polyglossia, should we be setting this variable
> ourselves?  I just now tried doing that:
>     \makeatletter
>     \@Latintrue
>     \makeatother
> and it seems to work.  However, I'm not sure how, without using
> Polyglossia, we should do this whenever we switch languages.  We never had
> to do that for other purposes--we just use
>      {\RL{some right-to-left stuff}}
> I guess we need to redefine \RL to be s.t. like this:
>     \makeatletter
>     \let\origRL\RL
>     \renewcommand{\RL}[1]{\makeatletter\@Latinfalse\
> makeatother{\origRL{#1}}\makeatletter\@Latintrue\makeatother}
>     \makeatother
> Right?  I tested this on a small example and it seems to work...  (email
> is wrapping the \renewcommand here)
>  Note: I did not need to load biblatex package unlike you.
> Figured that out--it was due to some old .aux file or s.t. that I had
> laying around as I was minimizing the example.
>     Mike Maxwell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20140927/9fa1d3b4/attachment-0001.html>

More information about the XeTeX mailing list