Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

colortbl rowcolor with @{\hspace{2em}}

53 views
Skip to first unread message

ivo welch

unread,
Nov 26, 2004, 2:24:41 PM11/26/04
to
dear latex wizards. I am working pdflatex with color and colortbl.
Now, I am trying to get colortbl to really color an entire row. The
problem is that I need some @{\hspace{}}'s in the tabular control
definition to increase some of my column spacing. But \rowcolor{}
leaves these spaces white, ignoring the row color. If I define
overhang, it happily overpaints some of my numbers in other cells.

one solution might be to get rid of the @{\hspace} commands
altogether, but this is such a nice feature that I would hate to part
with it. is there a better fix?

sincerely,

/iaw

Donald Arseneau

unread,
Nov 26, 2004, 5:07:42 PM11/26/04
to
ivo....@anderson.ucla.edu (ivo welch) writes:

> problem is that I need some @{\hspace{}}'s in the tabular control
> definition to increase some of my column spacing. But \rowcolor{}
> leaves these spaces white, ignoring the row color.

Sounds like a failing. Does it work if you (temporarily)
set \extracolsep instead? Nope.

Try it with >{\hspace{}}, but remember that @ suppresses
\tabsolsep whereas > adds to it.

Well, >{\hspace{}} works for one-line entries, but not for
paragraph entries. (It just indents the first line.)

A messy solution is

>{\addtolength\leftskip{1cm}}p{<width+1cm>}


Donald Arseneau as...@triumf.ca

ivo....@anderson.ucla.edu

unread,
Dec 2, 2004, 2:28:09 PM12/2/04
to
0 new messages