Using amsthm
package, is there an elegant way to automatically get a \newpage
before every theorem?
Edit: MWE featuring Christian Hupfer's suggestion
\documentclass{article}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
% \makeatletter
% \g@addto@macro{\thm}{\clearpage}
% \makeatother
\begin{document}
\begin{thm}
There are infinitely many prime numbers.
\end{thm}
% \newpage
\begin{thm}
$\sqrt{2}$ is irrational.
\end{thm}
\end{document}
theorem
,\makeatletter\g@addto@macro{\theorem}{\clearpage}\makeatother
should work... however, this is untested -- as usual, provide a compilable document, please\begin{thm}
and\end{thm
) in the next.