2

I am making a table where I need to adjust the row height. After adjusting the row height, the vertical lines on my second column do not extend to the correct height (they leave a gap).

\documentclass[11pt]{article} 

\usepackage{xcolor,colortbl}
\definecolor{Gray}{gray}{0.85}

\begin{document}
\Large\centering \textbf{APPROVALS} \\
\normalsize
\begin{center}
\begin{tabular}{|p{2in}|p{3.5in}|}
\hline\rowcolor{Gray}
 & \centering SIGNATURE \tabularnewline 
\hline
Document Owner \\  NAME 1 & \multicolumn{1}{c||}{ } \tabularnewline[15pt]
\hline
 Reviewer \\ Someone 1 & \multicolumn{1}{c|}{ } \tabularnewline[15pt]
\hline
Reviewer \\ Someone 2 & \multicolumn{1}{c|}{ } \tabularnewline[15pt]
\hline
Approved: \\ NAME 4 & \multicolumn{1}{c|}{ } \tabularnewline[15pt]
\hline
\end{tabular}
\end{center}
\end{document}

Table with line gaps

  • All \multicolumn{1}{c|}{ } can simply be omitted, by the way. – Mico Mar 9 '16 at 21:37
  • Yeah... I added it based on another discussion... Since it didn't work, but didn't change anything I thought I'd keep it so that no one would suggest it. – Charles W Arnold Mar 9 '16 at 21:52
2

the gaps are because you finished the rows early

Document Owner \\ 

has no second cell, so does not get the vertical rules in that cell use

Document Owner & \\ 
| improve this answer | |
  • I see! But now I want to fill the cells as they appear in the image. – Charles W Arnold Mar 9 '16 at 21:57
1

David pushed me in the right direction. The following code makes the table I want.

\documentclass[11pt]{article} 

\usepackage{multirow}
\usepackage{xcolor,colortbl}
\definecolor{Gray}{gray}{0.85}

\begin{document}
\Large\centering \textbf{APPROVALS} \\
\normalsize
\begin{center}
\begin{tabular}{|p{2in}|p{3.5in}|}
\hline\rowcolor{Gray}
 \multicolumn{1}{|c}{ }& \centering SIGNATURE \tabularnewline 
\hline
Document Owner1 & \tabularnewline
 NAME 1         & \tabularnewline[15pt]
\hline
 Reviewer   & \tabularnewline
  Someone 1 &  \tabularnewline[15pt]
\hline
  Reviewer   &  \tabularnewline
   Someone 2 & \tabularnewline[15pt]
\hline
 Approved:  &  \tabularnewline
  NAME 4    &  \tabularnewline[15pt]
\hline
\end{tabular}
\end{center}

\end{document}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.