How can I separate columns and cells with white lines. I googled and found we can put \hline
and |
in table definition but that produces black line.
\documentclass{article}
\usepackage{array,multirow}
\begin{document}
\begin{tabular}{|c|cc|}\hline
\multirow{4}{*}{Foo} & 1 & 2 \\
& 1 & 2 \\\cline{2-3}
& 1 & 2 \\
& 1 & 2 \\\hline
\multirow{4}{*}{Bar} & 1 & 2 \\
& 1 & 2 \\\cline{2-3}
& 1 & 2 \\
& 1 & 2 \\\hline
\end{tabular}
\end{document}
How can I change them to white line?
Best Answer
Use
colortbl
. I have used blue just to demonstrate as here background is white. You may changeblue
towhite
(\arrayrulecolor{white}
) in your actual case.For details Refer to documentation of
colortble
page 5 and 6 sections 7 and 8. To get documentation runtexdoc colortbl
from command prompt or visit texdoc.netAnother option is to use
xcolor
package with[table]
option:Edit:
It works for long tables also:
Edit:
For a query in the comment below:
You may use some thing like