Increase LaTeX table row height

How to increase the height of the rows in a LaTeX table?

-
\setlength\extrarowheight{5pt} and adjust 5pt to your needs –  karlkoeller Feb 8 '14 at 8:07
Just one more question how to place the text in the middle but increasing the height. –  user1965914 Feb 8 '14 at 8:09
Instead of adjustments to \extrarowheight just modify \arraystretch, e.g. by \renewcommand{\arraystretch}{1.2}. –  Thorsten Donig Feb 8 '14 at 8:21
@karlkoeller sorry I didnt realized that. I marked the accepted answer –  user1965914 Mar 16 at 5:24
@Werner This question is asked a years ago! What is the deal? (By the way, is not this question more google-friendly?) –  Symbol 1 Mar 16 at 7:29

Use package easytable

\documentclass{article}
\usepackage[thinlines]{easytable}
\begin{document}

\begin{TAB}(r,1cm,2cm)[5pt]{|c|c|}{|c|c|c|}% (rows,min,max)[tabcolsep]{columns}{rows}
hi & tall one    \\
hi & medium one  \\
hi & standard one\\
\end{TAB}

\end{document}


-
Thank you! Can you also help in this tex.stackexchange.com/questions/159259/… –  user1965914 Feb 8 '14 at 8:58
done. See answer –  Herbert Feb 8 '14 at 9:23

To increase the row height in a table you can either increase the \extrarowheight through something like

\setlength\extrarowheight{5pt}


or stretch the row through something like

\renewcommand{\arraystretch}{1.2}


as Thorsten Donig points out in the above comment.

IMHO, the best way to increase the height and keep the vertical alignment is to add the space when you break the row with \\, for example with \\[5pt].

This is an example (I've exaggerated a little with 50pt here)

\documentclass{article}
\usepackage{array}

\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{N}{@{}m{0pt}@{}}

\begin{document}

\begin{table}[ht]
\begin{tabular}{|M{4cm}|M{4cm}|N}
\hline
\textbf{Text} & \textbf{Text} &\\[50pt]
\hline
text & text&\\[50pt]
\hline
\end{tabular}
\end{table}

\end{document}


Note that I've added a column as the last one defined as @{}m{0pt}@{} to avoid the issue described here: Vertical alignment in table: m-column, row size - problem in last column.

Output

-
Very nice solution! Work without any additional package and its not overkill. –  JohnTortugo Aug 18 '14 at 17:47