I made a new theorem environement for a document but when the theorem is at the end of a page Latex cut the title and the core of the theorem in two pages. How can I prevent that (I can't put \ \ * instead of \newline as an argument for puncthead, I get errors).
\documentclass[10pt,a4paper]{article}
\title{Test}
\usepackage{amsmath}
\usepackage{amsthm, thmtools}
\declaretheoremstyle[
spaceabove=6pt,
spacebelow=6pt,
headfont=\normalfont\bfseries,
notefont=\em\mdseries,
notebraces={(}{)},
headpunct={},
bodyfont=\itshape,
postheadspace=\newline]{theorem}
\declaretheorem[style=theorem, numbered=no,
name=Theorem,
refname={theorem,theorems},
Refname={Theorem,Theorems}]{theorem}


\end{document}with no\beginso it is hard to use to test anything. – David Carlisle Oct 25 '18 at 20:18\begin{document}...\end{document}block from my answer) instead of just removing the\end{document}. – Skillmon Oct 26 '18 at 08:57