setting row height for table 

 Newsgroups: comp.text.tex
From: Jean-Come Charpentier <Jean-Come.Charpent...@wanadoo.fr>
 Date: Mon, 23 Jan 2006
> does anyone know how to set the height of rows in table?
> I want to make every row to have the same height, and vertical
> alignment be middle of the cell.

I think that the simplest is to use strut. Vertical alignment in the middle of the cell is not very clear. If you align the baseline with the middle of the cell, I'm not sure it looks centered. It's why the \Strut macro has an optional argument.

\documentclass{article}
\usepackage{array}

\newlength{\struthd}
\newcommand*\Strut[2][-0.3]{%
   \setlength{\struthd}{#2}%
   \rule[#1\struthd]{0pt}{\struthd}%

}

\begin{document}
$\displaystyle\frac{1}{2}$\Strut{2\baselineskip}\vrule

\vspace{5mm}
$\displaystyle\frac{1}{2}$\Strut[-0.375]{2\baselineskip}\vrule

\vspace{5mm}
$\displaystyle\frac{1}{2}$\Strut[-0.5]{2\baselineskip}\vrule

\vspace{5mm}
\begin{tabular}{|>{\Strut[-0.5]{60pt}}r|c|l|}
   \hline
   text & with & a strut \\\hline
   column one & column two & column three \\\hline
\end{tabular}
\end{document}

Jean-Come Charpentier

setting row height for table 

If you already know the height of your cells, then you could use an empty parbox to set the height of a row in every first column:

\newlength{\myheight}
\setlength{\myheight}{3cm}
\begin{tabular}{|l|l|l|}\hline
      \parbox[c][\myheight][c]{0cm}{}  row 1 & row 2  & row 3\\\hline
      \parbox[c][\myheight][c]{0cm}{}  row 1  & row 2 & row 3 \\\hline
\end{tabular}

To determine \myheight, maybe the command \settoheight might be useful.

Regards, Catilina