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 have a tabular environment nested within a table environment which I'd like to place horizontally centered. What's the best way to achieve this?

If the right thing to do is use the \centering command, should \centering enclose the table or just the tablular environment?

share|improve this question
up vote 7 down vote accepted

I think you should use \centering within the table environment for best results.

share|improve this answer
Can you explain why this is preferable over centering the table environment? – Isaac Kleinman Feb 19 '12 at 21:29
The center environment adds unwanted vertical space. – egreg Feb 19 '12 at 21:37
My question is about centering the tabular versus the table. – Isaac Kleinman Feb 19 '12 at 21:58
@IsaacKleinman If you'd like to centre the whole table environment you'd have to use \begin{center} \end{center} environment, which is why egreg said that. – Ayman Elmasry Feb 20 '12 at 7:22

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.