My school's recommended homework document class file uses a boxedminipage to typeset problem statements so they appear in a box. However, this has the unfortunate consequence that they can't be broken across pages — so problem statements frequently tend to push themselves onto a new page.

Is there a way around this, such that the box can be broken across pages? Or does anyone have any better suggestions for a way to visually offset the problem statements from the solutions?


Here is a short example using the mdframed package that is capable of breaking a boxed environment across a page:

enter image description here

\usepackage{mdframed}% http://ctan.org/pkg/mdframed
\usepackage{lipsum}% http://ctan.org/pkg/lipsum



\begin{theorem}[Your important theorem]



See the mdframed documentation for more information on how the mdframed environment can be used. In the above example, lipsum was used to generate dummy text, Lorem Ipsum style.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.