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?
\texttt
is sufficient, then\parbox{5cm}{\ttfamily text}
will do. Adjust the dimension. Otherwise you should present an example.\verb
won't get you far. Does\begin{verbatim}...\end{verbatim}
work?alltt
might be useful.subfigure
environment, offered by the/mysubcaption
package.\verb+xxxx+
will work here.