I would like to put a text and a math formula inside a \fbox, but I got an error:ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. Also the\\ did not work, so the text and the formula are still in one line.
\begin{figure}[htbp]
\centering
\fbox{%
text\\
$\begin{cases}
abcdefghijklmn\\
cdefg
\end{cases}$
\caption{a_caption}
\label{a_label}
\end{figure}
Another question is that it seems that the width of the frame is up to the width of what I put inside fbox, what to do if I want the width to be the width of the page?
Could anyone help? Thank you very much!

\fbox! – Joseph Wright Aug 11 '11 at 20:43$$and yet trying to insert a newline\\. Also the underscores will need to be escaped as ina\_caption. – Peter Grill Aug 11 '11 at 20:49Missing $ inserted.if I don't escape the underscores. – Peter Grill Aug 11 '11 at 21:08