The mdframed environment fails to break into several pages (slides) when used in a frame environment from the beamer class.

In the other hand, the boitecoloriee environment from the boites package can be broken into several pages.

Here is a document that demonstrates the issue. It should not be compiled directly into pdf because boitecoloriee uses pstricks.



\begin{frame}[allowframebreaks]{Using \texttt{boitecoloriee}}

\begin{frame}[allowframebreaks]{Using \texttt{mdframed}}


Maybe is there a way to fix mdframed to work in slides too. Any clues?


1 Answer 1


Unfortunately I must answer this question with: You can't do this.

The contents of a beamer frame will be saved in a savebox. mdframed does the same. You can't combine the splitting algorithm of \vsplit which is used by beamer and mdframed.

The package boites uses an other algorithm. It prints the contents line by line and so you can handle the page breaks in beamer.

  • Does this same explanation also apply to the tcolorbox package?
    – Romildo
    Oct 5, 2013 at 21:05
  • @Romildo: Yes. It uses nearly the same algorithm. Oct 5, 2013 at 22:56

You must log in to answer this question.

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