In the following application of \rowcolors
from the colortbl
package, how can I specify the option to start the alternating color pattern from the 3rd row onwards? The first two rows in this case are part of the table heading, so I don't want the alternating background color to begin until the 3rd row down.
If you can, please refer to any relevant sections in the package manual - if it's there I couldn't seem to find it.
\documentclass[12pt]{article}
\usepackage{booktabs}
\usepackage[x11names,dvipsnames,table]{xcolor} %for use in color links
\usepackage{colortbl}
\begin{document}
\rowcolors{1}{white}{Wheat1}
\begin{tabular}{l l l l l l}
\toprule
& \multicolumn{4}{l}{Training data set} & Test data set\\
\cmidrule(l r){2-5} \cmidrule(l){6-6}
Method & MSE & Var(Z) & $R^2$ & RMSE & RMSE\\
\cmidrule(r){1 - 1} \cmidrule(l r){2-2} \cmidrule(l r){3-3} \cmidrule(l r){4-4} \cmidrule(l r){5-5} \cmidrule(l){6-6}
Global polynomial, order 1 & 1 & 2 & 3 & 4 & 5 \\
Global polynomial, order 3 & 6 & 7 & 8 & 9 & 10 \\
Global polynomial, order 5 & 11 & 12 & 13 & 14 & 15 \\
\bottomrule
\end{tabular}
\end{document}
u
from 2colour
. Several seconds later, I did the second edit, removing the word "thanks". – xport May 30 '11 at 13:26