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.

3
  • 1
    Regarding table row height see: Increase LaTeX table row height
    – leandriis
    Commented Mar 30, 2019 at 17:14
  • But I said I don't want to use any package for this. Can you explain this using tabular Commented Mar 30, 2019 at 17:16
  • Number of Observations&51,717\\ &\\ \hline Just add the missing & in the row of the empty line.
    – koleygr
    Commented Mar 30, 2019 at 17:23

2 Answers 2

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

1
  • Thanks skillmon it worked. Commented Mar 30, 2019 at 17:25
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
2
  • 1
    To increase the height of every row without a package, you can use \def\arraystretch{1.1} (or any other value greater than 1).
    – Skillmon
    Commented Mar 30, 2019 at 17:26
  • Yes but it is asymmetric. Cellspace is better.
    – Bernard
    Commented Mar 30, 2019 at 20:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .