On Jul 13, 1:15m, "Stefan Pinnow" < XXXX@XXXXX.COM >
I don't think you are actually using the framed package here
Yuck. Instead of producing a blank line (via \newline) and
backspacing over it, just use \par.
What you are missing is how to tell the theorem environment to NOT
a place for a page break. You do that with the "internal" command
\@nobreaktrue (it is a flag).
You need to declare \makeatletter for this definition.