TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get a table cell with vertical text alignment.

My current code is:


Is there an easy solution to center the text vertically?

share|improve this question
I don't understand what do you mean with "center the text vertically", since it is a single line in a narrow row... Did you mean horizontally? – JLDiaz Mar 22 '13 at 11:19
@JLDiaz With my code, the text in the row was not vertically centered. It was a lot closer to the upper line then to the lower one. – Michael K Mar 22 '13 at 11:42
up vote 6 down vote accepted

Using a tabu environment instead of tabularx the solution is as follows:

\begin{tabu} to \linewidth{|X[1,m,j]|} % m = vertical alignment, j = justified (horizontal alingmnet

if you want additional vertical space you can specify \tabulinesep=^Xmm_Ymm at the beginning of the document

share|improve this answer
This is exactly what I was looking for. Thank you. – Michael K Mar 22 '13 at 11:36
@MichaelK you're welcome :) – Federico Mar 22 '13 at 12:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.