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:




Balanced Erroris long string likeBalanced Error Balanced Errorand when I try to draw ruler in between Train in Valid columns, it does not show up in the middle – alper Sep 29 '22 at 09:43\color{white}\vruleis not provided bycolortbl, this is possible usingarrayandcolor(both of which are loaded bycolortbl). – Skillmon Sep 29 '22 at 12:43