[Tex/LaTex] Centered tabular column, with narrow columns

horizontal alignmenttables

I'm trying to make a table in which most columns have the same width, and text in them is centered. However, the columns are very narrow, and the typical answer (make a new column type using \centering) isn't working. LaTeX is making sure that there's some minimum padding on the left, resulting in this:

non-centered columns

(Notice how IF is pretty well centered, but EX and MEM are absolutely not.)

Right now my custom column type is done like this:

\newcolumntype{C}{>{\footnotesize\centering\arraybackslash}m{1.5ex}}

Does anyone have any idea how I can get this text to be truly centered?

Best Answer

You may have to reduce the inter-column spacing by adding something like \setlength{\tabcolsep}{<len>} before the tabular (or placing it inside a group to limit the scope of the change, like inside a table environment). Either fix <len> or use something relative, like .5\tabcolsep to reduce the current \tabcolsep to 50% of its value.

\tabcolsep has a default value of 6pt under the regular document classes.

Related Question