I have a table and I would like to highlight some rows.
I am using:
\usepackage[table]{xcolor}
and:
\rowcolor{gray!50}
which produces:
I want to highlight the entire row with a solid block of colour,
like this!
Any advice would be appreciated!
MWE:
\begin{table*}[ht]
\centering
\setlength{\tabcolsep}{1mm}
\begin{tabular}{cccccc}
\hline\hline
\thead{Name} & \thead{Observing\\Frequency\\(MHz)} & \thead{Mean Standard Deviation of\\On-Pulse Phase Bins} & \thead{Peak Systematic\\Variability} & \thead{Average Systematic\\Variability} & \thead{Noisy\\Variability} \\
\hline
\rowcolor{gray!50}
B1747 & 1400 & 8.83 & 281.00 & 0.95 & 8.68 \\
B1747 & 2030 & 3.61 & 6.15 & 0.09 & 3.66 \\
B1747 & 1500 & 2.37 & 5.47 & 0.19 & 2.35 \\
B1347 & 820 & 1.44 & 4.59 & 0.09 & 1.43 \\
\rowcolor{gray!50}
B1921 & 820 & 5.46 & 34.23 & 2.56 & 3.87 \\
C1921 & 1500 & 5.16 & 12.00 & 1.12 & 4.86 \\
D1921 & 1400 & 4.93 & 22.66 & 1.84 & 3.96 \\
B1921 & 2030 & 2.82 & 14.01 & 1.29 & 2.25 \\
\hline
\end{tabular}
\caption{caption}
\label{var_table}
\end{table*}
\documentclass
, ends at\end{document}
and includes every necessary package. With the question as it is, I can only guess that you try to add additionalspace inbetween columns, either with@{}
or by changing the length oftabcolsep
.@{\hspace{5pt}}
or something similar.\documentclass
and\begin{document}...\end{document}
. (and what is\thead
?)