[Tex/LaTex] How to continue the framed text box on multiple pages

boxesframedpage-breaking

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end of the first page and begin anew on the second page (i.e. it appears as one text box and not two)…

Is there a way to disappear the lines which are at the end of the first page's box and the top of the second page box?

Example: the same framed box on two pages, but appearing as two separate boxes!!
enter image description here

Best Answer

Use the mdframed package which extends framed (and is rather configurable compared to its ancestor):

\documentclass{article}

\usepackage{mdframed}
\usepackage{lipsum}

\begin{document}

\begin{mdframed}
  \lipsum
\end{mdframed}

\end{document}
Related Question