I'm using booktabs to create table and use cmidrule to span a line across a few columns. The problem is when the cells have background color, the spaces around cmidrule makes it look really bad.
While, booktabs allow you to trim the left and right side of cmidrule, I don't see the options for setting spaces above and below it to 0.
This is the code I have:
\begin{table}
\centering
\begin{tabular}{lcc}
\bfrule % this is specialrule with no spaces above and below
\rowcolor[gray]{.8}
\multirow{2}{*}{} & \multicolumn{2}{c}{\textbf{Big group}} \\
%\cline{2-3}
\cmidrule(){2-3}
\rowcolor[gray]{.8} & subgroup1 & subgroup2 \\
\hline
Item 1 & 10 & 50\\
Item 2 & 5 & 25 \\
\bfrule
\end{tabular}
\end{table}
Is there any way to fix that?
Thanks,
Update
As David pointed out in his comment, removing spaces won't solve the problem. There's still thin line of white color at the left and/or right of the midline.



colortbl. I'm just trying to work aroundbooktabsas I've already had a few tables using it. My ultimate goal is to have the a line spanning a few columns without breaking the cell background color. – chepukha Nov 28 '15 at 22:08colortblis the package providing the background colour in your example (probably loaded via xcolor's table option) – David Carlisle Nov 28 '15 at 22:10