Just trying to put a box around a fig with some listings and text. Thought I had to put it in a minipage; but doesnt seem to work
This works without the box...
Code: Select all
\begin{figure}[htp]
\begin{minipage}{5in}
\begin{lstlisting}
assadaa
\end{lstlisting}
something about the above
\begin{lstlisting}
(more code)
\end{lstlisting}
blah
\end{minipage}
\end{figure}
with an attempted box i get the error
(/usr/local/texlive/2007/texmf-dist/tex/latex/listings/lstlang1.sty) [11]
! Argument of \lst@next has an extra }.
<inserted text>
\par
l.338 \end{minipage} }
produced by this code
Code: Select all
\begin{figure}[htp]
\fbox{\begin{minipage}{5in}
\begin{lstlisting}
assadaa
\end{lstlisting}
something about the above
\begin{lstlisting}
(more code)
\end{lstlisting}
blah
\end{minipage} }
\end{figure}
Ideas? thanks