Rather than use global commands like \widowpenalty as discussed in
this thread, I'd like to be able to control orphan lines locally, using \pagebreak[3]. Since the 3 option is the strongest suggestion short of forcing a break, it seems reasonable to expect that if \pagebreak[3] appeared before a line that would otherwise be the last line of a page, then the suggestion should be sufficiently strong that a page break would be induced. But it isn't, as the MWE illustrates.
The output is unaffected by the inclusion of the pagebreak suggestion. Is there a way to customize the pagebreak option so that \pagebreak[3] would break the page iff the line below it would be an orphan?
\documentclass[11pt]{amsart}%
\usepackage{lipsum}
\parindent=0 pt
\parskip=12 pt
\begin{document}
\lipsum[1-4]
word
\begin{enumerate}
\item
\pagebreak[3]
\underline{header}
\begin{enumerate}
\item \lipsum[1]
\end{enumerate}
\end{enumerate}
\end{document}
\newpage. I tried removing the\parskipline (and adding more lines to the page) but it didn't help. – Leo Simon Jan 08 '18 at 01:16