TransWikia.com

Table grid glitches on certain zoom level

TeX - LaTeX Asked on May 18, 2021

When writing tables in LaTeX I sometime notice with various PDF viewer the same glitches that only seem to appear on certain zoom level.

Any explanation?

enter image description here

Another example of these glitches, but this time in the opposite direction:

enter image description here

Here a minimal example (taken from here):

documentclass{article}
begin{document}

begin{table}
    caption{Table showing Feature 5's Functional Tests}
    hspace*{-0.5in}
    begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|}
    hline
    {bf Test ID } & {bf Task } & {bf Expected} & {bf Actual} & {bf Outcome} 
    hline
       5.1 & Something &  Something & Something &  Success 
    hline
       5.2 & Something &  Something & Something &  Success 
    hline
       5.3 & Something &  Something & Something &  Success 
    hline
       5.4 & Something &  Something & Something &  Success 
    hline
    end{tabular}
    end{table}
end{document}

One Answer

From the array package one can read:

With standard LATEX boxed tabulars actually have strange corners because the horizontal rules end in the middle of the vertical ones. This looks very unpleasant when a large arrayrulewidth is chosen. In that case a simple table like

setlength{arrayrulewidth}{5pt}
begin{tabular}{|l|}
hline A  hline
end{tabular}

So using usepackage{array} may solve your issue.

Answered by nowox on May 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP