# [texhax] Q: centering with known width

Martin Heller mr_heller at yahoo.dk
Thu Mar 8 18:04:48 CET 2007

D. R. Evans skrev:
> I've looked in my LaTeX books and googled, but can't find an answer to
> a simple question: how do I center a column in a table when that
> column has a known, fixed width?

Load the array package and define a new column type.

\usepackage{array}

...

\newcolumntype{C}{>{\centering\arraybackslash}p{2cm}}

...

\begin{tabular}{C...}