<div dir="ltr"><br><br><div class="gmail_quote">On Mon, Feb 1, 2010 at 6:47 AM, Ross Moore <span dir="ltr">&lt;<a href="mailto:ross@ics.mq.edu.au">ross@ics.mq.edu.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Vafa,</blockquote><div><br>Hi Ross, <br><br>There are 2 issues here: the side on which the marginal note is placed,<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

as well as the directionality of its contents.<br></blockquote><div><br>I am not really sure if I can understand these two issues. I think these two are done appropriately in v1.0.4 of bidi package, whenever, you are typesetting RTL, you get RTL \marginpar and whenever, you are typesetting LTR, you are getting LTR \marginpar. I guess that when you said that there are two issues, you really meant that when one is typesetting RTL, he should be able to have LTR \marginpar as well as RTL \marginpar by having \LTRmarginpar and \RTLmarginpar predefined in the bidi package. Right? or is it something else that you see as the issue?<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Now for positioning, using \reversemarginpar  at the<br>
beginning of the environment indeed switches sides.<br>
However one wonders why there should be a need for this.<br></blockquote><div><br>I already explained this. So I repeat it agian here. When you are typesetting LTR, you are typesetting from left to right and the \marginpar appears on the right hand side and \reversemarginpar appears on the left hand side but when you typeset RTL, you write from right to left, so it makes sense that \marginpar appears on the left hand side and \reversemarginpar appears on the right hand side. I have not implemented this idea myself, I took it from TeX-e-Parsi people and I think that it is correct.<br>
<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Now marginal notes are usually used by scholars or editors,<br>
making comments or giving references about other material.<br>
By default LaTeX supports L to R marginal notes;<br>
e.g., for Western scholars commenting on Western texts.<br></blockquote><div><br>Yes, but LaTeX \marginpar is very limited for this kind of typesetting. There are various packages designed for typesetting critical editions that users can benefit from.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
You are right in that bidi should support, by default, R to L<br>
content in margin-pars; e.g. for Arabic/Persian scholars commenting<br>
on Arabic &amp; Persian texts.<br>
<br>
However, bidi is clearly to support bi-directionality.<br>
So it should also be making it easy for Arabic scholars to make<br>
comments on Western texts, as well as Western scholars commenting<br>
on Arabic/Persian texts.<br></blockquote><div><br>My thinking was that in RTL, you should get RTL \marginpar and in LTR, you should get LTR \marginpar. But I am quite happy to add two more CSs, \RTLmarginpar and \LTRmarginpar.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
What would be nice is to give an option to the {Arabic}<br>
environment that would:<br>
  a.  execute  \reversemarginpar<br>
  b.  apply the \LR to marginpar content<br>
  c.  remove the need for the \hfill at the end .<br>
<br><br></blockquote><div><br>That is polyglossia (Arabic environment) not bidi but I can implement required tools in bidi that polyglossia can take advantage of them. <br></div><div> <br>Thanks heaps Ross for your wonderful and excellent ideas and suggestions. I will definitely add more support for typesetting \marginpar in the next version of bidi package.<br>
</div></div><br clear="all"><br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>