I have added a frame around my document title using mdframed
. The document compiles and displays properly but keeps throwing the following error:
Something's wrong--perhaps a missing \item. \end
Any ideas about what is happening with this? Here is the syntax being used:
\begin{document}
\begin{mdframed}
\maketitle
\end{mdframed}
%Body text here
\end{document}
mdframed
initialized with:
\usepackage[framemethod=default]{mdframed}
\mdfdefinestyle{MyFrame}{%
linecolor=black,
outerlinewidth=2pt,
%roundcorner=20pt,
innertopmargin=4pt,
innerbottommargin=4pt,
innerrightmargin=4pt,
innerleftmargin=4pt,
leftmargin = 4pt,
rightmargin = 4pt
%backgroundcolor=gray!50!white}
}
Thanks!
mdframed
treats its arguments as list items, but so many unlikely environments do, so it's worth looking at.