\cellcolor{gray}
command but it is not working. I am managing to do \textcolor{gray}
within the table, but the cell color is not working (nothing shows up).This is the code I am using. I can see the 'Hello' in row 2 showing up as gray. But row 3 is not shaded gray.
Code: Select all
\begin{table}[htbp]\renewcommand\caption{XXXX.}\begin{tabular}{c c c c }\toprule1 & 2 & 3 & 4 \\\midruleHello & \textcolor{gray}{Hello} & \cellcolor{gray} & Hello \\Hello & \textcolor{gray}{Hello} & \cellcolor{gray} & Hello \\\bottomrule\end{tabular}%\label{tab:}%\end{table}%
Cecilia