[Tex/LaTex] How to one prevent \fbox from running off the page

framedline-breaking

I am using the \fbox command to box a large chunk of text:

\fbox{Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.}

This text does not line wrap. It just runs off the page. Why does it do that?

Best Answer

I think you might be better served using the mdframed package, which handles line breaking and page breaking.

See the MWE below, and the documentation for more elaborate examples

\documentclass{article}

\usepackage{mdframed}

\begin{document}

\begin{mdframed}
Four score and seven years ago our fathers brought forth 
on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.
\end{mdframed}

\end{document}