I'm using Miktex 2.9 and TexnicCenter 2.02 and I would like to have a gray column in my table. I found some examples on the internet. They work, but if I use them, some of the cell borders (only in the gray column) disappear in my PDF (Adobe Reader XI). On zoom level 100%, only the middle hline is gone, on zoom level 125% also the top line and on 150% (or 75%) also the left line of the gray column. On 90% the middle line is even there but top and left are missing. So it seemes to be random.
This is my latex table:
\usepackage{colortbl}
\definecolor{Gray}{gray}{0.85}
\newcolumntype{a}{>{\columncolor{Gray}}c}
\begin{document}
\begin{table}
\begin{tabular}{| a | l |}
\hline
Spalte 1 & Spalte 2 \\
\hline
1 & 2 \\
\hline
\end{tabular}
\end{table}
\end{document}
I also tried this alternative:
\begin{tabular}{|>{\columncolor[gray]{0.8}} l | r |}
Same problem here. I also found a similar question but with no answer and the comment, that a different viewer shoud be used. I tried it with PDF-XChange Viewer and actually the problem does not occur. But I know that my professor uses Adobe, so it has to work with this viewer. Does anyone got an idea? Thanks.
Edit:
This \setlength\arrayrulewidth{0.6pt} or this \setlength\arrayrulewidth{1pt} does not solve the problem for me.
\setlength\arrayrulewidth{1pt}or some such but it's really a feature of the different pdf renderers and the way table colours are constructed in latex. – David Carlisle Aug 25 '15 at 14:07