LaTeX forum ⇒ Document Classessvmono+enumitem: how to discourage a page break between a remark head and a following list?

Information and discussion about specific document classes and how to create your own document classes.
AlbertNashr
Posts: 2
Joined: Sat Mar 11, 2023 12:39 am

svmono+enumitem: how to discourage a page break between a remark head and a following list?

Postby AlbertNashr » Tue Mar 14, 2023 2:24 am

Feeding

\documentclass{svmono}% v5.10 (2021/09/08) from http://www.springer.com/gp/authors-edit ... #toc-49268 or directly from http://resource-cms.springernature.com/ ... monographs
\usepackage{enumitem}
\usepackage{lipsum}
\begin{document}%
\vspace*{80.3ex}
\lipsum[1]
\pagebreak[1]
\begin{remark}[Words words words words words words words words words w\ldots]%\nopagebreak[1]%
\label{someLabel}%\nopagebreak[1]%
\begin{enumerate}[label=(\arabic*)]%\nopagebreak[1]%
\item \lipsum[2-3]%%% a long text here
\pagebreak[1]
\item \lipsum[4-5]%%% another long text here
\end{enumerate}%
\end{remark}
\end{document}


to pdflatex leads to a page break right after the heading of the remark:

Bildschirmfoto von 2023-03-14 00-47-08.png
Bildschirmfoto von 2023-03-14 00-47-08.png (60.31 KiB) Viewed 97 times


It's interesting to see that inserting any of the commands \pagebreak[1]%, \nopagebreak[1]%, or \penalty0% right after w\ldots] prevents a page break between “ w…)” and “(1)”. As for \nopagebreak[1]%, it's expected. However, as for \pagebreak[1]% and \penalty0%, these commands have an opposite effect (which is strange because IMHO, they apparently should enable breaking or at least not prevent it)!

Why does this happen? What would be an appropriate way to slightly discourage a page break between the header end “ w…)” and the start of the list “(1)”?

Crossposts: http://topanswers.xyz/tex?q=3802 , http://golatex.de/viewtopic.php?f=4&p=121245 , http://texwelt.de/fragen/29115 and http://tex.stackexchange.com/questions/678749 .

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook

Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 2 guests