I'm trying to get mdframed to split at the bottom of my page, such that there is no white space between the bottom of the frame and the footer. At the moment I have this:

I'd like to have mdframed split right at the bottom of the white space, instead of leaving a gap between it and the bottom border. Is there a way to do this?
\enlargethispage{2cm}– Marco Daniel May 15 '12 at 15:53\makeatletter\preto\mdf@put@frame@ii{\enlargethispage{2cm}}\makeatother and after\end{mdframed}` you must reset it\enlargethispage{-2cm}. – Marco Daniel May 15 '12 at 17:38\makeatletter\preto\mdf@put@frame@ii{\enlargethispage{2cm}}\makeatotherthe mdframed do not change, regardless of the value inside \enlargethispage – ezietsman May 15 '12 at 21:21