[texhax] framing tables

George Georgalis george at galis.org
Tue Aug 14 03:19:49 CEST 2007

On Tue, Aug 14, 2007 at 05:30:15AM +0530, E. Krishnan wrote:
>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?
>ifconfig -a
>netstat -finet -nr | grep UGH | awk '{print $1}'
>\caption{Determine host address, two methods shown}
>For fancier designs, please look at the documentation of the "fancyvrb" 

Well that works spot on! Thank you.

However I have a new problem... "Verbatim" is not recognized
by my vim syntax highlighting, which means everything past "1"
is colored as an error. Simple enough to fix with this in the
tex.vim file (not sure how to incorporate in .vimrc)

syn region texZone start="\\begin{Verbatim}" end="\\end{Verbatim}\|%stopzone\>" contains=@Spell

But I was wondering, is there a simple way to renewcommand
"Verbatim" so it is called by "verbatim" or should I stick with
fixing my editor highlighting?

// George

George Georgalis, information system scientist <IXOYE><

More information about the texhax mailing list