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


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.

\section{This is a framed section}
This is the text.