<div dir="ltr">Well, I suppose you do not use low-level commands like \RL to typeset say Arabic. Do you?<div><br></div><div>One usually defines an environment like:</div><div><br></div><div>\newfontfamily\arabicfont[ExternalLocation,Script=Arabic]{amiri-regular}</div><div>\newenvironment{arabtext}{\begin{RTL}\@Latinfalse\arabicfont}{\end{RTL}</div><div><br></div><div>or if you are defining commands:</div><div><br></div><div>\newcommand*{\textarab}[1]{\RL{\@Latinfalse\arabicfont #1}}</div><div><br></div><div>The definition of \RL is somehow special and should not be redefined like you did.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 27, 2014 at 8:15 AM, maxwell <span dir="ltr"><<a href="mailto:maxwell@umiacs.umd.edu" target="_blank">maxwell@umiacs.umd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2014-09-26 16:01, Vafa Khalighi wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not a bug. bidi package has a boolean \if@Latin. The boolean should be set<br>
in higher level packages (like polyglossia) to true for non-RTL scripts and<br>
false for RTL scripts. Its initial value is false so that explains the<br>
behaviour.<br>
</blockquote>
<br></span>
Since we're not using polyglossia, should we be setting this variable ourselves?  I just now tried doing that:<br>
    \makeatletter<br>
    \@Latintrue<br>
    \makeatother<br>
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<br>
     {\RL{some right-to-left stuff}}<br>
<br>
I guess we need to redefine \RL to be s.t. like this:<br>
    \makeatletter<br>
    \let\origRL\RL<br>
    \renewcommand{\RL}[1]{\<u></u>makeatletter\@Latinfalse\<u></u>makeatother{\origRL{#1}}\<u></u>makeatletter\@Latintrue\<u></u>makeatother}<br>
    \makeatother<br>
<br>
Right?  I tested this on a small example and it seems to work...  (email is wrapping the \renewcommand here)<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Note: I did not need to load biblatex package unlike you.<br>
</blockquote>
<br></span>
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.<br>
<br>
    Mike Maxwell<br>
</blockquote></div><br></div>