In Section \ref{sec:textcolor} we showed the extended set of colors available through the xcolor.sty
package. For tables, it is also useful to have control over the background color of individual rows. One can set row colors via the aptly named \rowcolor
macro, and set alternating colors for rows using the \rowcolors
macro, starting at a particular row offset. Here is an example:
An Example of Row Colors |
---|
Heading can be White |
Green |
Lighter Green |
Green |
Lighter Green |