GeneralVertical and horizontal lines not showing in table-tabulary

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jimisola
Posts: 22
Joined: Sat Feb 02, 2008 2:54 am

Vertical and horizontal lines not showing in table-tabulary

Post by jimisola »

Hi!

I have a problem with vertical and horizontal lines not showing in table-tabulary environment.
The code snippet is as follow (if this is not enough I'll provide a MWE upon request):

Code: Select all

\begin{table}[!h!]
    \centering
    \begin{tabulary}{\textwidth}{|C|L|}
        \hline
	\rowcolor[gray]{.75}
        \vphantom{\rule{0pt}{10pt}}Header 1 & \vphantom{\rule{0pt}{10pt}}Header 2 \\[5pt]
        \hline 
        column 1 & column 2\\\hline 
PROBLEM: The header row does not have line/border on two sides (left and top).

Regards,
Jimisola

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Vertical and horizontal lines not showing in table-tabulary

Post by localghost »

Please, provide a minimal working example (MWE). I'm too lazy to work that out by myself.


Best regards
Thorsten¹
jimisola
Posts: 22
Joined: Sat Feb 02, 2008 2:54 am

Re: Vertical and horizontal lines not showing in table-tabulary

Post by jimisola »

MWE as requested. The example has table content that is in Swedish, but should be irrelevant for the actual problem.
Attachments
test-latex.tex
(3.37 KiB) Downloaded 348 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Vertical and horizontal lines not showing in table-tabulary

Post by Stefan Kottwitz »

Hi Jimisola,

you could make a test print and look at the lines - maybe it's a problem of the acrobat reader. Try different zoom levels of the reader or use a different reader and compare.
Another idea: remove (comment out) the line \rowcolor[gray]{.75} and look at the lines. The colour/gray may cause that result.

Stefan
jimisola
Posts: 22
Joined: Sat Feb 02, 2008 2:54 am

Re: Vertical and horizontal lines not showing in table-tabulary

Post by jimisola »

When I zoom in (200%) both the missing lines show and when I remove the gray then I see a perfect border!

I'm not able to print from where I am now, but I'll give that I try to see if it's only Acrobat Reader that has problem with the render.

Thank you for the heads up.
Post Reply