[XeTeX] Strange behavior with right-to-left footnotes

François Charette firmicus at ankabut.net
Sat Apr 14 19:44:45 CEST 2007

Dear all,

While doing some testing with my bidi package before uploading it to 
CTAN, I noticed a strange behavior with the placement of footnotes in 
right-to-left context.

When compiling the following sample with xelatex, the beginning of the 
second footnote is placed too far to the right. With pdflatex however I 
obtain the expected layout.

NB: Until bidi becomes available on CTAN in a couple of days (I have 
uploaded it earlier today), you can get it from 

  \hrule width \textwidth \kern 2.6\p@}


But this behavior can also be reproduced without footnotes, and without 
using my bidi package. The following short sample features a 
construction roughly equivalent to the Latex \@makefntext macro. This 
probably better circumscribes the problem.



\parindent 1em\noindent\makebox[1.8em][r]{$^1$} Some text

\everypar={\setbox0=\lastbox \beginR \box0 }
\parindent 1em\noindent\makebox[1.8em][r]{$^2$} More text

With plain xetex a similar issue occurs, though in a different way: the 
footnotemark of the second footnote is now displaced too far to the 
*left*, as demonstrated by the following sample. Again, with pdftex the 
output is OK.

\def\footnoterule{\kern-3pt\hrule width \hsize \kern 2.6pt}

\hrule\vskip 12pt

\everypar={\setbox0=\lastbox \beginR \box0 }

Any idea?



More information about the XeTeX mailing list