I need to use the mdframed
package with frames extending many pages, e.g. more than 20 pages..
Consider the following code:
\documentclass{article}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \Repeat \prg_replicate:nn
\ExplSyntaxOff
\begin{document}
\begin{mdframed}
\Repeat{1500}{xxx\\}
\end{mdframed}
\end{document}
produces (with pdflatex
) the following error
Underfull \hbox (badness 10000) in paragraph at lines 9--10
! Dimension too large.
<argument> \dimexpr \ht \mdf@splitbox@one
+\dp \mdf@splitbox@one \relax
l.10 \end{mdframed}
What may be the problem here?
\maxdimen
, as long as you don't try to use those dimensions. The maximum dimension is a bit less than six meters; assuming a text height of 25cm, no more than 23/24 pages can fit.mdframed
to use the output routine rather than\vsplit
so that the content is collected on the main vertical list rather than in a box, but that might be tricky....