# [texhax] Putting a border around verbatim text

James Smith sf at aleph-one.com
Fri Aug 4 10:31:17 CEST 2006

Hi,

I've previously been shown how to treat my verbatim environments as
floating by enclosing them in table environments, thus:

\renewcommand\tablename{Listing}

...

\begin{table}[h]
\begin{verbatim}
.
.
.
\end{verbatim}
\caption{...}
\label{...}
\end{table}

This works fine but now I'd like to put a hairline border around the
contents of the verbatim environment, not including the caption and also
leave some padding between the border and content. Is this possible?

Thanks in advance.

Kind regards,

Jim

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/407 - Release Date:
03/08/2006



More information about the texhax mailing list