Code: Select all
\color{blah} field1 & \color{blah} field2 & ... \color{blah} fieldN \\
Code: Select all
\color{blah} field1 & \color{blah} field2 & ... \color{blah} fieldN \\
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Thanks, but could you be more specific as to what part of colortbl? I don't see any commands in there that appear to control text color at the entire row level.Annabel wrote:I guess the colortbl package is the right one for you:
Code: Select all
\begin{tabular}{|l|c|}
\rowcolor[gray]{.9}
one&two\\
\rowcolor[gray]{.5}
three&four
\end{tabular}
I am looking at it and the text color is black in both rows. It is only the background color that's affected by the \rowcolor (unless you're looking at some different PDF - I'm on page 5 of this colortbl.pdf.Annabel wrote:What do you mean? There is an example in the manual:
...
You should be able to change gray into whatever colour you like (have a look at the PDF).
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis