[Tugindia] Table: Centering in fixed width of column

David Kastrup tugindia@tug.org
19 Dec 2002 20:47:17 +0100


H S Rai <hsraidce@iitr.ernet.in> writes:

> Is there any easy way to center  justify enteries in a column of fixed
> width. If I  use |p{wd}|,  then I  have it  write \centering  for each
> entry. If I use |c|, then I  don't get fixed width of column. For some
> reason I need  all columns of same width, with  data center justified.
> Don't we have something like |c{1in}| ?

\usepackage{array}

|>{\centering}p{1in}|

Note that \\ will be used for separating paragraphs now, so you will
have to use \tabularnewline to end a line of the table.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum