This question already has an answer here:

I created a table and it starts from the left and goes all the way to right, which looks really skewed. So I want to center align the whole table but couldn't figure out how to do it. I'm new to latex so I don't know how to use other plugin or macros, but I suppose there's a command for this basic functionality. Can anyone tell me?

marked as duplicate by lockstep, mafp, David Carlisle, Stefan Kottwitz Mar 12 '13 at 11:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Mar 12 '13 at 9:44

This question came from our site for professional and enthusiast programmers.


If this is inside a float like the table environment, I'd suggest

\centering % center but don't add vertical space
<your table code>
\caption{...} % caption could also be placed above the table
\label{...} % albel always AFTER \caption

Using the center environment inside a float is not recommended as it adds vertical space above and below, which the float will also do, resulting in too much space.



your table