0

I was trying to increase the thickness of the cell by giving extra space at the bottom of cell but that gives me discontinuos line at the table border. How can I get rid of this. Solution using only the tabular package is preferrable.

enter image description here

Here is what I have tried

\begin{center}
\begin{tabular}{ | l | l | }
\hline
Feature&Result\\\hline
Number of Observations&51,717\\ \\ \hline 
Number of Variables&17 \\\hline
\end{tabular}
\end{center}

Any help would be highly appreciated.

leandriis
  • 62,593

2 Answers2

1

The problem why the line isn't continuous is because the rule is actually drawn by the cell to its left. If you don't have a cell there, no rule is drawn. So to get that rule, you'd have to place an empty cell there:

\documentclass[border=2mm]{standalone}

\begin{document}
\begin{tabular}{ | l | l | }
\hline
Feature&Result\\\hline
Number of Observations&51,717\\ & \\ \hline 
Number of Variables&17 \\\hline
\end{tabular}
\end{document}

enter image description here

Skillmon
  • 60,462
0

To increase the thickness of cell without getting discontinous line, one way could be to use \rule for every cell.

\rule{0pt}{0.9cm} Feature&Result\\\hline
\rule{0pt}{0.9cm} Number of Observations&51,717\\ \hline 
\rule{0pt}{0.9cm} Number of Variables&17 \\\hline