I have a document with a long list of items in enumerate and itemize environments, some of these start with a single line followed of a long (or sort) paragraph:
\begin{itemize}
\item short sentence no more than a line.
% I definitely don't want the page break here
very long paragraph, with lots of text but which
I wouldn't mind to break between pages.
% I wouldn't mind a break here
\item another item with a some what long sentence
% but it shouldn't break here
Another long paragraph which I wouldn't mind to break.
\end{itemize}
I want to prevent the first line from being separated from the rest of the text, but in a way that doesn't prevent page breaks on the longer paragraphs, like minipage or samepage. There seems to be a comment describing a piece of code from ltlists.dtx that seems to be meant to prevent the case I'm seeing:
This code is intended to prevent a page break after the first line of an item that comes immediately after a section title. It may be sensible to always forbid a page break after one line of an item? As with all such settings of
\clubpenaltyit is local so will have no effect if the item starts in a group.
But only applies if it's after a title, which is not this specific case.
itemizeenvironment here and that you really want something else. – cfr Nov 28 '16 at 03:25itemizeis class and package dependent. It is necessary to have some widows in order to recreate the issue. Hence, an MWE including widows is required. In any case, an MWE must compile by definition. An MNWE is suitable if asking for help with an error. – cfr Nov 28 '16 at 04:26\parcommand to create paragraphs. So my usage of "paragraphs" is by "source code" correct. – Braiam Nov 28 '16 at 04:34