This script:
\documentclass{report}
\usepackage{lipsum}
\begin{document}
\lipsum[1-5]
Examples:
\\\nopagebreak
example 1\\
example 2\\
example 3
\end{document}
unfortunately introduces an awkward page break between "Examples:" and "example 1":
I attempt to tackle the problem by using \nopagebreak
however, my solution doesn't work. How to fix?
\nopagebreak
in that position is preventing a break between example1 and example2, but you should not need such a command in-document. – David Carlisle Apr 6 '19 at 18:36