Graphics, Figures & TablesVertical lines not reaching top of horizontal line in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
aeelmn
Posts: 15
Joined: Tue Apr 10, 2007 4:09 pm

Vertical lines not reaching top of horizontal line in table

Post by aeelmn »

I have a table with vertical and horizontal lines, but some places the vertical lines don't quite reach the horizontal lines on top leaving a small unwanted space. How can I remove this space?

Code: Select all

\begin{center}
    \renewcommand{\arraystretch}{1.3}
\begin{tabular}[h]{!{\vrule width 1pt} p{3cm} | p{2.5cm} | p{8cm}!{\vrule width 1pt}} 
\noalign{\hrule height 1pt}
01 & \multicolumn{2}{ c !{\vrule width 1pt}}{Name} \\
\noalign{\hrule height 1pt}
\multirow{13}{*}{figure} & \multirow{4}{*}{} &  xx \\ 
 &  &  \\
 &  &  \\
 &  &  \\ \cline{2-3}
 & & \\ \cline{2-3}
 &  & \\ \cline{2-3}
 & \multirow{2}{*}{} &  \\ \cline{2-3}
 & \multirow{4}{*}{} &  \\ 
 & &   \\
 & & \\
 & &  \\ \cline{2-3}
 & \multirow{2}{*}{} &  \\
 & &  \\
\noalign{\hrule height 1pt}
\end{tabular}
\end{center}

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Vertical lines not reaching top of horizontal line in table

Post by localghost »

It is recommendable to abandon vertical lines and use the booktabs package to improve legibility of tables.


Best regards
Thorsten
Post Reply