I have a single sentence paragraph that introduces a list, and LaTeX is trying to insert a page break between the paragraph and its list, which I find unacceptable. I can prevent that page break with \@nobreaktrue
, but then I lose the vertical space between the paragraph and its list. How can I prevent a page break between the paragraph and its list without losing the normal vertical space I'd expect there?
MWE:
\documentclass{article}
\makeatletter
\newcommand{\reallynopagebreak}{\par\@nobreaktrue\nopagebreak}
\makeatother
\begin{document}
Paragraph introducing list:\reallynopagebreak{}
\begin{itemize}
\item list
\end{itemize}
\end{document}
Unwanted result, no space between paragraph and list:
For now I've just done \vspace{\baselineskip}
at the end of the paragraph, but surely that's not the best way?
Best Answer
I think the answer I'd prefer today is lockstep's answer for preventing page break before itemize. Here's my MWE above adapted to demonstrate this: