I am using this template for making tables. I tried to add \rowcolor[gray]{.8}
between \toprule
s and \midrule
s but the the effect is bad in the sense that it highlight on 3/4 of the row leaving the edges white.
Any solution?
\documentclass{article}
\usepackage{colortbl, xcolor}
\usepackage{booktabs,caption,fixltx2e}
\usepackage[flushleft]{threeparttable}
\begin{document}
\definecolor{lightgray}{rgb}{.9,.9,.9}
\begin{table}
\begin{threeparttable}
\caption{Sample ANOVA table}
\begin{tabular}{lllll}
\toprule
Stubhead & \( df \) & \( f \) & \( \eta \) & \( p \) \\
\midrule
Row 1 & 1 & 0.67 & 0.55 & 0.41 \\
Row 2 & 2 & 0.02 & 0.01 & 0.39 \\
Row 3 & 3 & 0.15 & 0.33 & 0.34 \\
Row 4 & 4 & 1.00 & 0.76 & 0.54 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item This is where authors provide additional information about
the data, including whatever notes are needed.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}