I'm compiling this code and as result I have this table:
\begin{table}[!h]
\centering
\begin{tabular}{cc|c|c}
\toprule
& & \textbf{$\mathcal{J}$ fairness index} & \textbf{TB size} \\
\midrule
& \cellcolor[HTML]{9B9B9B}{\color[HTML]{000000} $16 \times 8$} & \cellcolor[HTML]{9B9B9B}{\color[HTML]{000000} } & \cellcolor[HTML]{9B9B9B}{\color[HTML]{000000} } \\ \cline{2-4}
& \cellcolor[HTML]{C0C0C0}$16 \times 4$ & \cellcolor[HTML]{C0C0C0} & \cellcolor[HTML]{C0C0C0} \\ \cline{2-4}
\multirow{-3}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}BLIND\\ METHOD\end{tabular}}} & \cellcolor[HTML]{EFEFEF}$4 \times 4$ & \cellcolor[HTML]{EFEFEF} & \cellcolor[HTML]{EFEFEF} \\ \midrule
& \cellcolor[HTML]{9B9B9B}$16 \times 8$ & \cellcolor[HTML]{9B9B9B} & \cellcolor[HTML]{9B9B9B} \\ \cline{2-4}
& \cellcolor[HTML]{C0C0C0}$16 \times 4$ & \cellcolor[HTML]{C0C0C0} & \cellcolor[HTML]{C0C0C0} \\ \cline{2-4}
\multirow{-3}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}TRAINING\\ METHOD\end{tabular}}} & \cellcolor[HTML]{EFEFEF}$4 \times 4$ & \cellcolor[HTML]{EFEFEF} & \cellcolor[HTML]{EFEFEF} \\ \midrule
& \cellcolor[HTML]{9B9B9B}$16 \times 8$ & \cellcolor[HTML]{9B9B9B} & \cellcolor[HTML]{9B9B9B} \\ \cline{2-4}
& \cellcolor[HTML]{C0C0C0}$16 \times 4$ & \cellcolor[HTML]{C0C0C0} & \cellcolor[HTML]{C0C0C0} \\ \cline{2-4}
\multirow{-3}{*}{\textbf{\begin{tabular}[c]{@{}c@{}}HEURISTIC\\ METHOD\end{tabular}}} & \cellcolor[HTML]{EFEFEF}$4 \times 4$ & \cellcolor[HTML]{EFEFEF} & \cellcolor[HTML]{EFEFEF} \\ \bottomrule
\end{tabular}
\caption{•}
\label{tab_fairness_los}
\end{table}
I would like to know how I can make the cline between coloured cells appear? Any idea? Is there something wrong in the code? Do I need a particular package?
If I use \hline
instead of \cline
this is what happens:
Sincerely I don't know how I should write
colortbl
package documentations says:% \section{Less fun with \cs{cline}} % Lines produced by "\cline" are coloured if you use % "\arrayrulecolor" but you may not notice as they are covered up by % any colour pannels in the following row. This is a `feature' of % "\cline". If using this package you would probably better using the % "-" rule type in a "\hhline" argument, rather than "\cline"
[h!]
generally it just makes latex give a warning that it is changing it toht
but it is almost always best to includep
as well, otherwise the float is very restricted and more likely to go to the end of the docuemnt as it has no legal place to go.%\usepackage[table,xcdraw]{xcolor}
. I try to use\hhline
but nothing change.