When I write the following
\subfloat[caption]{\label{fig:xxxx}\verb+xxxx+}
I get \verb illegal in command argument. Seems that isn't possible to define a verbatim environment inside a \subfloat.
When I use \subfloat[caption]{\label{fig:xxxx}\texttt{xxxx}} it works, but I need multiple lines, so I have to use verbatim
What alternatives do I have? Maybe another package?
\textttis sufficient, then\parbox{5cm}{\ttfamily text}will do. Adjust the dimension. Otherwise you should present an example. – egreg Feb 2 '12 at 12:58\verbwon't get you far. Does\begin{verbatim}...\end{verbatim}work? – krlmlr Feb 2 '12 at 13:19allttmight be useful. – tohecz Feb 2 '12 at 17:20subfigureenvironment, offered by the/mysubcaptionpackage.\verb+xxxx+will work here. – Axel Sommerfeldt Feb 4 '12 at 7:21