--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
Hi everyone,
I have a programming code, and I need to put this code in a verbatim
environment, and around the code, create a box, and put all this in a
figure environment. So,, I tried to use the following code:
\begin{figure}[h!]
\mbox{
\begin{verbatim}
code 1
code 2
code 3
...
\end{verbatim}
}
\end{figure}
when I compile, appear an error, but If I take out the \mbox command
the compiling process is right, no errors, I tried to use \fbox
instead \mbox, but appears a error, too.
Does anyone know what is happening, why does the error appear.
--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
I have latex at the end of a long build process where it compiles the source
that I am going to include. That way there are no typos in the source.
One thing that I thought was especially cool about the listings package is
that it can number the lines in the output and you can embed latex commands
in the source. Using this combination, you can insert a label into the
source code, have latex not print the latex to keep it pretty in the
document, and then reference the line numbers. So your text can say "... as
shown on line 10 and lines 15-30...".
James
\begin{document}
--