[XeTeX] bidi question

maxwell maxwell at umiacs.umd.edu
Tue Jul 15 23:54:29 CEST 2014


I have encountered what appears to be a very minor bug in the 2013 
version of the bidi package.  The sourceforge page for bidi 
(http://bidi.sourceforge.net/) appears to have been recently set up, and 
as a result the links to source code are not there yet--in particular, 
the method for reporting bugs is not there.  But I installed the 2014 
version from http://www.ctan.org/tex-archive/macros/latex/contrib/bidi, 
and I get the same output (and verified that xelatex is using the newer 
file).

I'm attaching the minimal file below.  The PDF output has a blank line 
between the first and second footnotes, which IMO shouldn't be there.  I 
don't get this result if bidi isn't loaded, and with bidi loaded I only 
get this result if the last line of the first footnote ends right at the 
right-hand margin (and TeX doesn't think it can improve the result by 
wrapping onto the next line--hence the rather long final word in the 
minimal example's footnote).

I also only get this result if the close brace of the first footnote is 
on the line following the last word of the footnote, that is, if I have
--------
word word word.
}
--------

rather than
--------
word word word.}
--------

So it's a very minor problem, and easy enough to work around.  My 
problem with the work-around is that the LaTeX code is generated from 
XML, and avoiding that line break before the brace is difficult.

Anywhere, here is the minimal example:
----------
\documentclass{report}
\usepackage{bidi}

\begin{document}
Refer to first footnote\footnote{
Fill fill fill fill fill fill fill fill fill fill
fill fill fill fill fill fill fill fill fill fill
fill fill fill fill fill fill fill fill fill fill
fill fill fill fill fill fill fill fill fill fill
fill fill fill fill fill fill fill fill fill fill
fill fill fill fillfillfillfi.
} refer to second footnote.\footnote{Another footnote.}

\end{document}
----------

    Mike Maxwell
    University of Maryland



More information about the XeTeX mailing list