15

I'd like to create a new column type which works exactly like a X column from tabularx but that also has the text vertically centered. I tried with the newcolumntype command but I can't figure out where to put the second column type? Example:

\newcolumntype{n}{>{\centering\arraybackslash}X}

Where should I put the mto specify that the cells content should be vertically centered?

David Carlisle
  • 757,742
franz
  • 2,397

1 Answers1

21

The example in the tabularx documentation is

\renewcommand{\tabularxcolumn}[1]{>{\small}m{#1}}

Then use X as usual.

David Carlisle
  • 757,742