[texhax] framing tables

E. Krishnan ekmath at asianetindia.com
Tue Aug 14 02:00:15 CEST 2007


On Mon, 13 Aug 2007, George Georgalis wrote:

> I'm looking for a way to frame tables, to set them off the main text.
>
> With quite a few tables (table, not tabular) of only a line or two
>
> \begin{table}
> \begin{verbatim}
> ifconfig -a
> netstat -finet -nr | grep UGH | awk '{print $1}'
> \end{verbatim}
> \caption{Determine host address, two methods shown}
> \label{tab:address}
> \end{table}


How about this?

\usepackage{fancyvrb}

\begin{table}
\begin{Verbatim}[frmae=single]
ifconfig -a
netstat -finet -nr | grep UGH | awk '{print $1}'
\end{Verbatim}
\caption{Determine host address, two methods shown}
\label{tab:address}
\end{table}

For fancier designs, please look at the documentation of the "fancyvrb" 
package

-- 
Krishnan


More information about the texhax mailing list