[Tex/LaTex] Very thin white line in colortbl

colortbl

Whenever I use the colortbl package to format tables, a thin white space between the cells sometimes shows up on screen (not in print for as far as I can tell). For example in this table:

Is there an easy way to enlarge each rectangle by a tiny amount so that the white space is not visible anymore?

(My guess is that the white space appears due to rounding in my pdf viewer, evince. I don't know if other pdf viewers have the same issue. Regardless, I would like to have my pdf file look good in common pdf readers)

Best Answer

Yes this is due to the coloured panels being snapped to pixel boundaries.

You can go \\\noalign{\vskip-0.1pt} for a suitably small amount between each row, then the panels will overlap and you are less likely to get a gap. You can add set \extrarowheight to something large to compensate (which is probably a good idea anyway, to keep the capital letters away from the top of the panels)

That is for horizontal lines. For vertical lines \rowcolor has optional arguments to specify optional left and right overhang.