Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 10 down vote accepted

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}
share|improve this answer
    
the md package works!! thx –  umar Mar 15 '11 at 14:12
    
a tip: use style=2 in \usepackage. otherwise Adobe Reader (10.0) won't show the frames.... –  umar Mar 15 '11 at 14:24
    
@umar: Good advice. In Adobe Reader they wont be shown at every zoom level. Making the lines thicker also helps. –  Martin Scharrer Mar 15 '11 at 15:31
    
@umar, Adobe Reader 9.x behaves the same. –  xport May 25 '11 at 4:41
add comment

An alternative package to mdframed is tcolorbox. Among some other interesting features, includes breakable framed boxes.

Using default style a simple example could be:

\documentclass{article}
\usepackage[most]{tcolorbox}
\usepackage{lipsum}

\begin{document}

\vspace*{15cm}
\begin{tcolorbox}[breakable, enhanced]
\lipsum[1]
\end{tcolorbox}

\end{document}

and the result:

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.