while intensively using the longtable
environment, I ran into a situation where a the table is broken to the next page immediately after its endfoot
line, without any real table row on the starting page. How to fix this?
MWE:
\documentclass[english,11pt,a4paper]{article}
\usepackage{longtable}[2004/02/01]
\begin{document}
\vspace*{188mm}
Here nearly at bottom of page, a longtable follows\ldots
\begin{longtable}{|l|p{58mm}|}
%
\hline
\endfirsthead
%
\hline\multicolumn{2}{|l|}{\textsl{\ldots continued from previous page}}
\endhead
%
\multicolumn{2}{|l|}{\textsl{will be continued on next page\ldots}}\\*
\hline
\endfoot
%
\hline
\endlastfoot
%
aa: & 4711\\
\hline%
aaa: & 2\\
\hline%
aaaa: & 4711-2\\
\end{longtable}
\end{document}
The problem is that I'm going to create many documents automatically and therefore may not see such layout problems.
If the initial vertical space is a bit less or more, the problem disappears...
Thanks in advance for help and ideas!
\vspace*{187.212502mm}
for this example, at least in my envrionment. I don't know why and what that tells...\setlength{\LTpre}{0pt}
the problem disappears in this MWE (the minimum length then is\vspace*{189.338523mm}
), but that seems to be not always a workaround.