# Table cell color overlaps left cell border of first column which is multicolumn [duplicate]

In this example, the color overlaps the left border, or the left border does not display. After dvips. I am using dvips because of pstricks.

In other words, the border seems to look okay when zoomed in in xdvi, but not after converted to postscript. Before zooming in the border (left border of fist cell in first row) appears to be missing in xdvi as well.

How can I cause the border to display or not be overlapped?

\documentclass{article}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{|l|l|} \hline
\multicolumn{2}{|l|}{\cellcolor{yellow}blarg blarg} \\ \hline
& y \\ \hline
\end{tabular}
\end{document}

• This is only a visual artefact from your viewer at a specific zoom level. When you zoom in, do you exactly this?
– Werner
Jan 12 '15 at 6:57
• @Werner No, I can notice the same behavior with latex->dvips->ps2pdf Jan 12 '15 at 7:59
• Try compiling with xelatex Jan 12 '15 at 8:04
• @karlkoeller: Same as with pdfLaTeX; it's an issue with the zoom-level (and therefore not TeX-related).
– Werner
Jan 12 '15 at 8:09
• – Werner
Jan 12 '15 at 8:10

The colortbl docs give an answer of sorts, by using left/right overhang parameters of columncolor:

\documentclass{article}
\usepackage{hhline}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{|l|l|} \hline
\multicolumn{2}{|>{\columncolor{yellow}[.99\tabcolsep][\tabcolsep]}l|}{blarg blarg} \\ \hline
& y \\ \hline
\end{tabular}
\end{document}


Somewhere I think I saw a post by David Carlisle that used reusable values in the overhang instead of my guessing at .99\tabcolsep.