I have a latex table as follows
\documentclass[12pt]{report}
\usepackage{colortbl}
\begin{document}
\begin{table}
\centering
\begin{tabular}{|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|}
\hline
Column1 & Column2 & Column3 & Column4 \\
\hline
A & \cellcolor[gray]{0.5} & D & E \\
\hline
& & & F \\
\hline
& & & \\
\hline
\end{tabular}
\end{table}
\end{document}
The cell color is overlaping to the nearby columns. It may be because of @{\,}
I used with tabular to remove text padding in columns(It is required since my actual table has more width). Anyone know how prevent the cell shading from overlapping to other cells in this case?
\documentclass{...}
and ending with\end{document}
.