I think I may have stumbled upon an undocumented feature regarding page breaking in longtable
.
The following MWE produces (at least in my TeXlive 2014 setup) a document in which the last paragraphs overflow the bottom of the page.
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{lipsum}
\usepackage{longtable}
\begin{document}
\begin{figure}
\sffamily \lipsum[2]
\caption{A figure}
\end{figure}
\lipsum[1-2]
\begin{longtable}{ll}
a & b \\
c & d
\end{longtable}
\begin{figure}
\sffamily \lipsum[1]
\caption{A figure}
\end{figure}
\lipsum[1-4]
\end{document}
The result is:
The problem is, I think, related to longtabu and floats: wrong table breaks on pages with floats. Note that I am working with a patched version of longtable.sty
, as per David Carlisle's suggestions (patch available at http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=tools/3512, which, incidentally has not made it into TeXlive 2014, despite having been around >2 years).
The difference with the earlier question is that my float appears after the long table. Moving the float above the longtable fixes the problem, but this is clearly not a real solution. Does anyone happen to know how to fix this?