Graphics, Figures & TablesProblem with the invisible table borders

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ivan_hr
Posts: 18
Joined: Fri Dec 10, 2010 12:32 pm

Problem with the invisible table borders

Post by ivan_hr »

Hi,

I'm trying to make a colored rows or columns in my table but for some reason table border becomes invisible on some places. For example in the attachment I've included the leftmost vertical border is invisible and it should not be? It seems that the color covers the border on some places.

Can someone here help me to fix this? Here is my code which produces the table.

Code: Select all

\documentclass[12pt]{article}

\usepackage{colortbl}
\usepackage[croatian]{babel}

\begin{document}

\begin{tabular}{|l|c|}
\hline
\rowcolor[gray]{0.95} one&two\\
\rowcolor[gray]{0.95} three&four\\
\hline
\end{tabular}

\end{document}
Help would be much appreciated, thanks in advance.
Attachments
output_table.png
output_table.png (2.08 KiB) Viewed 5614 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Re: Problem with the invisible table borders

Post by west.logan »

I think this is simply a function of your display (i.e., the lines being too narrow to display). If you look at the PDF output and zoom in, or print it off, your example looks fine.
ivan_hr
Posts: 18
Joined: Fri Dec 10, 2010 12:32 pm

Re: Problem with the invisible table borders

Post by ivan_hr »

The picture in the attachment has already been zoomed in to 147% on my pdf viewer.
If I open it with no zoom i.e. 100% then both the upper border as well as the leftmost border are both missing.

When I print the document than it looks ok, that's true. I think it might have something to do with my PDF viewer because everything looks fine with TeXworks pdf viewer but not with Adobe Acrobat 8 which is my default pdf viewer.
Post Reply