I have created a minimal working example (MWE) consisting of a section and a longtabu table.
\documentclass{report} \usepackage{longtable,tabu} \begin{document} An initial line of text \vskip 47.5em % Offset the section to close to the bottom of the page \section{Test section} \begin{longtabu}{l X} \textbf{Column 1} & \textbf{Column 2} \\ \hline \\ \endhead Cell 1 & Cell 2 \\ \end{longtabu} Additional content \end{document} In the compiled document, which becomes two pages long, the section heading ends up at the end of the first page while the table (longtabu) ends up at the other. Why doesn't LaTeX prevent that a page break is inserted directly after the section heading, and how can it be fixed? If LaTeX has to break the page before the table has been finished, I want the page break to be inserted before the section heading.
Ideally, I want to obtain the same result as if a clearpage had been inserted right before the section heading started, if there would otherwise have been a page break between the section heading and the table.
\newpagein front of this code\nonumsubsubsection{Translation}\newrobustcmd{\nonumsubsubsection}[1]{\addtotoc{subsubsection}{#1}\needspace{2\baselineskip}\subsubsection*{#1}}? Requiresneedspacepackage.