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?


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

  • Can you explain why this is preferable over centering the table environment? – Isaac Kleinman Feb 19 '12 at 21:29
  • 2
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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