The following code leads to an endless loop. pdflatex is at 100% CPU and the log is constantly increasing with number counted upwards.

\vrule height 210mm
  • I get normal output in both cases (without commenting end-of-lines). Same version of mdframed.
    – egreg
    Commented Feb 2, 2012 at 21:06
  • 1
    Maybe try to get the latest version of l3kernel and its brothers?
    – yo'
    Commented Feb 2, 2012 at 21:24
  • 3
    I have done your homework, Matthias ;) (... and made a MWE)
    – topskip
    Commented Feb 4, 2012 at 18:08
  • 2
    A solution to the answer: you should buy a CRAY computer, a CRAY is the only computer that runs an endless loop in just 4 hours...
    – topskip
    Commented Feb 4, 2012 at 18:18
  • 1
    In cases like this it's very useful to run LaTeX from a terminal, rather than from the front-end; the behavior is clearly due to trying to fit an object which is bigger than the page in height. Running from the terminal would show immediately that TeX is shipping out pages after pages.
    – egreg
    Commented Feb 4, 2012 at 18:30

1 Answer 1


Based on the example of Patrick, I can provide an answer.

The material of the environment mdframed is saved in a simple \vbox. Based on computed lengths related to the text height, the box will be split by \vsplit. Your material can't be split, so you run into an endless loop because mdframed repeats the splitting algorithm. Up to now there is no check for such situations.

In order to avoid the endless loop you can use the option nobreak. However the result is a blank page and the output itself.

 \vrule height 250mm

You must log in to answer this question.

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