this is a follow up to the problem described here.

I have the same problem and the proposed solution does not completely solve the problem. I mean, it does solve the problem but also creates another one. The new problem is that the theorems, lemmas and the rest are placed in such as way that they are not cut (of course), but this leaves then big empty spaces in many pages. So the problem is that, the problem described here does not seem to be fully resolved using the nocut option.

Do you any of you have a good idea on how to solve this? Thanks!

  • Welcome to TeX.SX! You can have a look on our our starter page to familiarize yourself further with our format. Commented Aug 21, 2013 at 12:46

2 Answers 2


This perhaps is not the kind of answer you were expecting. Instead of using the thmbox=M option (which relies in the thmbox package) from the thmtools package , I would suggest you the tcolorbox package to design a theorem style imitating the one provided by the M option, but behaving nicely with page breaks:

\usepackage[a6paper]{geometry}% just for the example

    \setbox\z@=\hbox{\unhbox\z@\ }%
  \newtcolorbox[auto counter,#1]{#2}[3][]{#4,%
    list entry={\numberline{\thetcbcounter}##2},%

outer arc=0pt,
overlay unbroken={
  \draw ([xshift=15pt,yshift=-11pt]frame.north west) -- ([xshift=15pt]frame.south west) |- +(30pt,0);},
overlay first={
  \draw ([xshift=15pt,yshift=-11pt]frame.north west) -- ([xshift=15pt]frame.south west);},
overlay middle={
  \draw ([xshift=15pt]frame.north west) -- ([xshift=15pt]frame.south west);},
overlay last={
  \draw ([xshift=15pt]frame.north west) -- ([xshift=15pt]frame.south west) |- +(30pt,0);},


Some cross referecens to theorems~\ref{the:testa} and~\ref{the:testb}




enter image description here


if you want to stay with thmbox, you can make use of the internal switch that allows or prevents a page break in the middle of a theorem.

since it's unlikely that all theorems will fall in a place that isn't affected by a page break, it's probably useful to make two user-level switches -- one to turn breaking off, and one to turn it on:


then you can use these switches either "locally" -- enclosing the desired switch in a brace-group or \begingroup ... \endgroup that surrounds the theorem, to operate on only that theorem -- or by switching on and off as appropriate.

it is probably a good idea, if your document is in multiple files, to restore the "normal" setting at the end of each file, to avoid surprises later.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .