[texhax] Longtable question.
Ulrike Fischer
news3 at nililand.de
Mon Mar 8 12:07:19 CET 2010
Am Fri, 5 Mar 2010 13:34:37 -0500 schrieb Beuthe, Thomas:
> Hello all,
>
> I'm overseeing the production of some large documents that are almost entirely mechanically generated.
> Large portions consist of sections that contain only longtables and no other text or features.
> Example:
>
> \subsection{A}
> longtable here
> \subsection{B}
> another longtable here
> and so on
>
> This can cause funny pagebreaks sometimes where a section heading is orphaned
> at the bottom of the page because the only thing following it is a longtable before the next
> section break occurs.
>
> It can also cause situations where the section break occurs at the bottom of the page
> and the only thing that follows it is the header of the longtable and an \hline below it
> at the very bottom of the page, and the table continues on next page. For example:
> 1) Is there any way of glueing the \subsection to the top of the longtable somehow?
Try \Needspace{5\baselineskip} (or another value) from the needspace
package before the \subsection.
--
Ulrike Fischer
More information about the texhax
mailing list