NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Alignment of the numbers can be done with the siunitx package, which provides a S column type for numbers, I believe that does exactly what you want for points 1 and 2.
A multicolumn over a single column can be used to center a single cell.
Alright, but then I can't use $...$ in my table entries to write something like $1.83 \pm 0.23$. If I take out siunitx and change the tabular arguments from S to c, it works again. But then I lose the alignment. So, how can I get both to work at the same time?
Also:
If I have a big number (see revised column 2), it nudges the whole column over. How can I get the whole column to be centered again?
That third column is actually centered on the decimal point, I'm not sure what you want it to be centered on, but you might want to take a look at the siunitx manual, section 5.14 provides a whole list of options for tabular material.
If you use siunitx and you want to format $1.83 \pm 0.23$ you can also use \num{1.83\pm0.23} in normal text, and in a S column inside a table you actually don't need the $...$ or \num{...} since siunitx automatically parses all numbers, so basically everything that's allowed inside \num{} is allowed in the table.
Edit: when you use siunitx to typeset numbers with uncertainty check the manual, by default 1.83\pm0.23 becomes 1.83(0.23), but it is all configurable to display it any way you want is.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
Apparently siunitx by default reserves 2 spaces for decimals of which you use only one. If your entire table will contain only numbers with one decimal you can add the option table-figures-decimal=1.
Alright, help, why can't I get the values in the second column to be exactly centered? I keep specifying table-alignment center but it's off to the right a little.
Actually, the numbers are perfectly aligned in your example, it is the title that's not quite centered. To fix this you should enclose the title in {}, even when you already group the title in the \textbf{}. Adding the brackets prevents siunitx from parsing the contents at all, and it will apply the correct alignment to the group as it is. I'm not sure where the title is aligned at without them, but it gets the job done
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p