# [texhax] Column specifier question

E. Krishnan ekmath at asianetindia.com
Tue Oct 16 02:22:42 CEST 2007

On Mon, 15 Oct 2007, Yiqing Jin (Denny) wrote:

> I need to give the columns some certain widths while at the
> same time requiring the text to be centre aligned. I have tried the
> \begin{tabular}{c c c c c}, and also the \begin{tabular}{... p{24mm}
> ...} commands, but how can I get them to work at the same time?

Does this help?

\usepackage{array}

\begin{tabular}{>{\centering}p{24mm}
>{\centering}p{24mm}
>{\centering}p{24mm}}
a   & b   & c\tabularnewline
def & ghi & jkl\tabularnewline
\end{tabular}

--
Krishnan