In a table, I have rows represented as gray and white colors using \rowcolors{3}{}{gray!20}
. Here, I want to split columns using white color line instead of black. The way I created column lines using |
but I cannot define its color.
Example is take from Table with multiple columns, with small changes I made.
\usepackage{booktabs} \usepackage[table]{xcolor} \begin{document} \begin{table}[htp] \centering \rowcolors{3}{gray!20}{} \begin{tabular}{ l| *{3}{S[table-format=1.4]}| *{3}{S[table-format=1.4]} S[table-format=5] } \toprule \multicolumn{1}{c}{Data Set} & \multicolumn{3}{c}{Balanced Error} & \multicolumn{3}{c}{Area Under Curve} \\ \cmidrule(lr){2-4} \cmidrule(lr){5-7} & {Train} & {Valid} & {Test} & {Train} & {Valid} & {Test} \\ \midrule arcene & 0.5000 & 0.4886 & 0.5006 & 0.5000 & 0.5114 & 0.4994 \\ gisette & 0.5000 & 0.4886 & 0.5006 & 0.5000 & 0.5114 & 0.4994 \\ dexter & 0.5000 & 0.4886 & 0.5006 & 0.5000 & 0.5114 & 0.4994 \\ madelon & 0.5000 & 0.4886 & 0.5006 & 0.5000 & 0.5114 & 0.4994 \\ \bottomrule \end{tabular} \end{table} \end{document} ```
output:
Instead the the drawning column line (|
) black, can it be white, example output would be: