I have in my paper a theorem-like environment which consists only of an enumerated list. It looks bad if I just type it in vanilla, so I add a $\,$ before the enumerate (see also enter link description here).
The problem is, it so happens that the theorem header is printed on one page, while the first item is printed on another, which is clearly awful.
I don't mind some items being printed on a page separate from the header (so this is not a solution to my problem), but if all the content is separated from the header, this is really bad, in my opinion.
Is there a solution, preferably one that will not cause great problems when the theorem shifts slightly after subsequent changes in the surrounding text?
MWE:
\documentclass{article}
\usepackage{amsthm}
\usepackage{lipsum}
\newtheorem{thm}{Theorem}
\begin{document}
\lipsum[1-4]
a\\a\\a\\a\\a\\a\\a\\
%%%Looks bad!!!
\begin{thm}$\,$
\begin{enumerate}
\item
a
\item
b\qed
\end{enumerate}
\end{thm}
\end{document}

\needpsacepackage.\needspace{3\baselineskip}will go to next page if there is not sufficient room for 3 lines on current page. – Peter Grill Feb 28 '16 at 12:27amsthm) is to use\leavevmoderather than\,. but there's still the danger of "breakage", so\needspacemay still be needed. – barbara beeton Feb 28 '16 at 13:43\needspacewould still be needed. @PeterGrill's suggestion is the real answer; i was just trying to tidy up the corners. the problem is known -- the beginning of a list is defined to be a good place to break a page -- and is on a list of problems to be investigated. – barbara beeton Feb 28 '16 at 13:53\leavevmodeis conceptually "cleaner" with respect to how the theorem environment is defined, not really. (and, granted, "cleaner" is not easy to define; but it's what's recommended by the person who wrote the code.) – barbara beeton Feb 28 '16 at 14:21\@beginparpenalty? – touhami Feb 28 '16 at 16:11