[Tex/LaTex] How to make a box around a section

framedsectioning

I'm trying to put a box around a section, both the title and the contents. I've found ways of doing one or the other, but not both.

+-----------------------+
| Title                 |
|                       |
| content of section    |
| ...                   |
+-----------------------+

Something like the above, a single box around both the section title, and the section content.

Best Answer

Try the mdframed package.

\documentclass{article}
\usepackage{mdframed}
\begin{document}
\begin{mdframed}
\section{This is a framed section}
This is the text.
\end{mdframed}
\end{document}

mdframed