I have a table with a relatively long heading of one to two digit numbers. Here is my initial code:
\documentclass{article}
\usepackage{booktabs}
\usepackage{textcomp}
\begin{document}
\begin{tabular}{ccr}
\toprule
\textnumero & Symbol & Number of Units \\ \midrule
1 & A & 9 \\
2 & B & 10 \\
3 & C & 7 \\
4 & D & 12 \\
5 & E & 2 \\
6 & F & 3 \\
7 & G & 4 \\
[![8 & H & 5 \\][1]][1]
9 & I & 5 \\
\bottomrule
\end{tabular}
\end{document}
As you can see, the whole table ends up looking rather unbalanced. Now, obviously, I could just center the whole column, like so:
...
\begin{tabular}{ccc}
...
The column is centered under the heading, but of course the numbers lose their right justification, which is less than ideal. My next intuition was to try to use the \multicolumn
to try and get the heading centered, while leaving the rest right justifed:
...
\begin{tabular}{ccr}
\toprule
\textnumero & Symbol & \multicolumn{1}{c}{Number of Units} \\ \midrule
...
Unfortunately, this resulted in the same output as the first. I'm really not sure what I should do here. Is there any way to accomplish what I'm looking for? Ideally, the end result would look something like this (manually edited the screenshot in GIMP):