# thmtools with thmbox split in two pages

I am trying to use the thmbox=Moption from the thmtools package. But sometimes in the text when there isn't enough space for the theorem to fit in the bottom of the first page, it moves it to the next page and still splits it further to a third page. I have a minimal example here. I really like the box shape, so if you can give me a solution using the same package, or tell me how to make a boxed theorem like this, I would really appreciate it!

\documentclass{report}
\usepackage{amsthm, amsmath}
\usepackage{blindtext}
\usepackage{thmtools}
\declaretheorem[style=remark, thmbox=M, name=Theorem]{theorem}
\begin{document}

\begin{theorem}
\blindtext[4]
\end{theorem}

\begin{theorem}
Assuming this is true,
$$\label{eq:zeroconf} \sum_{i,j} d_{i,j}^2\|X_i- X_j\|^2=0$$
Then this happens.
\end{theorem}

\end{document}


## 1 Answer

ultimately, the package thmbox is loaded, and that has an option nocut.

since you're not calling this package directly, try adding this option to your \documentclass line, and hope for the best. (this tactic did work for your example.)

• The most awesome solution ever proposed to me! Thanks! Can you always pass left out options to through the \documentclass?! – user2262793 Aug 20 '13 at 18:55
• thanks for the "attaboy". i'm not sure this always works, but i can't remember having gotten any worse complaint than "unused option". in other words, it's not likely to destroy anything, so it's worth a try, and if it doesn't work, you can always delete it. – barbara beeton Aug 20 '13 at 19:14
• I have the same problem and this solution does not solve the problem. I mean it solves the problem but creates another one. The problem now is that the theorems, lemmas and the rest are placed in such as way that they are not cut (of course), leaving then big empty spaces in many pages. So the problem is that, the bug described here does not seem to be fully resolved using the nocut option. – Konuts Aug 20 '13 at 21:14
• @Konuts -- a second question was posted regarding this problem: thmbox splits theorems in two pages and the option “nocut” produces many empty spaces in pages. some alternate approaches are offered there. – barbara beeton Aug 21 '13 at 12:46