Amazing! Your patch fixed the multi-paragraph footnote bug in bidi.<br><br>Thanks,<br>Mohsen Vakilian<br><br><div class="gmail_quote">On Fri, Oct 9, 2009 at 7:54 AM, Vafa Khalighi <span dir="ltr">&lt;<a href="mailto:vafa@users.berlios.de">vafa@users.berlios.de</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;"><div dir="ltr">I believe the following code fixes the issue. Put this before \begin{document}:<br>

<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>

<p style="margin: 0px; text-indent: 0px;">\makeatletter</p>
<p style="margin: 0px; text-indent: 0px;">\long\def\parse@rsent#1#2\EInRTL#3#4#5\parse@end{\@sentdirfalse</p>
<p style="margin: 0px; text-indent: 0px;">\def\@tempa{\InRTL}\def\@tempb{\EInRTL}\def\@tempc{#1}\def\@tempd{#4}%</p>
<p style="margin: 0px; text-indent: 0px;">\ifx\@tempa\@tempc\ifx\@tempb\@tempd\@sentdirtrue\fi\fi}</p>
<p style="margin: 0px; text-indent: 0px;">\long\def\ifrsentence#1{\parse@rsent#1\EInRTL123\parse@end\if@sentdir}</p>
<p style="margin: 0px; text-indent: 0px;">\long\def\bidi@footnotetext@dir#1{%</p>
<p style="margin: 0px; text-indent: 0px;">   \@tempswatrue</p>
<p style="margin: 0px; text-indent: 0px;">   \ifrsentence{#1}\rtl\@tempswafalse\fi</p>
<p style="margin: 0px; text-indent: 0px;">   \iflsentence{#1}\ltr\@tempswafalse\fi</p>
<p style="margin: 0px; text-indent: 0px;">   \if@tempswa\if@RTL\rtl\else\ltr\fi\fi</p>
<p style="margin: 0px; text-indent: 0px;">   \xdef\bidi@this@footnote{\if@RTL\noexpand\right@footnote\else\noexpand\left@footnote\fi}%</p>
<p style="margin: 0px; text-indent: 0px;">}</p>
<p style="margin: 0px; text-indent: 0px;">\long\def\iflsentence#1{\parse@lsent#1\EInLTR123\parse@end\if@sentdir}</p>
<p style="margin: 0px; text-indent: 0px;">\long\def\parse@lsent#1#2\EInLTR#3#4#5\parse@end{\@sentdirfalse</p>
<p style="margin: 0px; text-indent: 0px;">\def\@tempa{\InLTR}\def\@tempb{\EInLTR}\def\@tempc{#1}\def\@tempd{#4}%</p>
<p style="margin: 0px; text-indent: 0px;">\ifx\@tempa\@tempc\ifx\@tempb\@tempd\@sentdirtrue\fi\fi}</p>
<p style="margin: 0px; text-indent: 0px;">\makeatother</p><p style="margin: 0px; text-indent: 0px;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">


and you should have no problem. Thanks again for your bug report.<br></p><br clear="all"><br>-- <br>Vafa<br>
</div>
</blockquote></div><br>