<div dir="ltr">No, I think it has to do with something that tikzpicture or pspicture environment are in LTR mode by bidi. you can load endnotes anywhere you want but certainly bidi gives you error if you load tikz or pstricks after bidi, thus you only will have to load tikz or pstricks before bidi.<br>
<br><div class="gmail_quote">2011/9/22 Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com">zdenek.wagner@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/9/21 VAFA KHALIGHI <<a href="mailto:vafaklg@gmail.com">vafaklg@gmail.com</a>>:<br>
<div class="im">> I am not sure what is the actual problem but I can tell you what bidi does.<br>
> bidi does the following:<br>
><br>
</div>Can it depend on the order in which the packages are loaded? This is<br>
what I would try. My feeling is that the correct order would be tikz,<br>
endnote, bidi.<br>
<div><div></div><div class="h5"><br>
> 1- makes l and r logical such that l means always left and r always means<br>
> right (in both RTL and LTR).<br>
><br>
> 2- bidi automatically puts tikzpicture and pspicture envoronments in LTR<br>
> mode mainly for two reasons:<br>
> a) RTL picture environment does not make sense.<br>
> b) XeTeX in RTL mode, with \special has bugs and tikz and pstricks both uses<br>
> \special so we have no other choice but putting pspicture and tikzpicture<br>
> inside LTR mode.<br>
><br>
> On Thu, Sep 22, 2011 at 12:26 AM, Nathan Sidoli <<a href="mailto:nathan.sidoli@utoronto.ca">nathan.sidoli@utoronto.ca</a>><br>
> wrote:<br>
>><br>
>> I realize this is not strictly speaking a XeTeX issue, but I am<br>
>> typesetting a critical edition of an Arabic text using XeLaTeX with the<br>
>> ednotes package and I want to be able to make the diagrams for the text<br>
>> using either pstricks or TikZ so that the Arabic fonts can be changed in the<br>
>> text and diagrams simply by toggling the initial font setting.<br>
>><br>
>> When I load either of these graphics packages, however, the line numbers<br>
>> in the margins of the Arabic text disappear.<br>
>><br>
>> Has any one had a similar problem? Can any one think of a possible<br>
>> solution?<br>
>><br>
>> I can work on a minimal example, but it will probably not be that minimal.<br>
>><br>
>><br>
>><br>
>> --------------------------------------------------<br>
>> Subscriptions, Archive, and List information, etc.:<br>
>> <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
><br>
><br>
><br>
><br>
> --------------------------------------------------<br>
> Subscriptions, Archive, and List information, etc.:<br>
> <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Zdeněk Wagner<br>
<a href="http://hroch486.icpf.cas.cz/wagner/" target="_blank">http://hroch486.icpf.cas.cz/wagner/</a><br>
<a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a><br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
--------------------------------------------------<br>
Subscriptions, Archive, and List information, etc.:<br>
<a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
</div></div></blockquote></div><br></div>