[XeTeX] Problem with bidi + longtable + caption packages

maxwell maxwell at umiacs.umd.edu
Wed Oct 21 06:35:28 CEST 2015

On 10/20/2015 9:34 PM, Herbert Schulz wrote:
>> On Oct 20, 2015, at 7:55 PM, maxwell <maxwell at umiacs.umd.edu>
>> wrote:
>> I've encountered a problem in the interaction between the
>> longtable, bidi, and caption packages.
 >> ...
> The longtable environment is like a tabular environment, not the same
> as a floating environment like the table environment. It's floats
> that take the caption.

Actually, the longtable package supports captions too, and the caption 
package (which allows further customization, 
http://www.ctan.org/pkg/caption) explicitly supports longtable:
Package support
The caption package was adapted to the following packages which deals 
with captions, too:
float, floatflt, fltpage, hyperref, hypcap, listings, longtable, 
picinpar, picins, rotating, setspace, sidecap, subfigure, supertabular, 
threeparttable, wrapfig, and xtab
99% of our tables use ordinary tables, but 1% of our tables won't fit on 
a single page and require longtable.  These need captions the same way 
regular tables do (there's also a continuation caption on the second and 
following pages of longtables).  I didn't show a bunch of rows in my 
example to keep it minimal; the actual table where we first noticed the 
problem was just over a page in length.

    Mike Maxwell

More information about the XeTeX mailing list