TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 9 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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