I would like to center column headings (and column headings only) in the following table. Why does it work with the first column, but not the second (I thought \multicolumn
is the correct approach to this problem).
\documentclass{article}
\usepackage[american]{babel}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{rr}
\toprule
\multicolumn{1}{c}{$\alpha$} & \multicolumn{1}{c}{$\alpha=0.99999$} \\
\midrule
10 & 69.681 \\
& 901.741 \\
1000 & 893.630 \\
& 82.806 \\
\bottomrule
\end{tabular}
\end{document}
Best Answer
This is just a little example of how you can make a small modification to your input in order to get the desired output:
The addition of a
\phantom
leading 0 for numbers less then 100 makes all the numbers the same width, soc
entering is readily achieved.