In the following MWE involving the siunitx
package, how can I align the numbers in the second (melting temperature) and third (viscosity eta) columns? I have tried S[table-format=-2.2,table-number-alignment=left]
and S[table-format=2.2,table-number-alignment=left]
.
\documentclass[oneside,11pt]{book}
\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage[
expansion = false ,
tracking = smallcaps ,
letterspace = 40 ,
]{microtype}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{table}
\centering
\begin{tabular}{
l
S[table-format=-2.2,table-number-alignment=left]
S[table-format=2.2,table-number-alignment=left]
l}
\toprule
& {$T_m$ (\si{\celsius})} & {$\eta$ (\si{\milli\pascal})} & $\sigma$ (\si{\siemens/\centi\meter})\\
\midrule
A & \num{14(1)} & \num{38(1)} & \num{13} @ \SI{20}{\celsius}\\
B & \num{-85(2)} & \num{104(4)} & \num{3.6} @ \SI{20}{\celsius}\\
\addlinespace
C & \num{-1.71(7)} & \num{32.2(6)} & \num{8.8} @ \SI{20}{\celsius}\\
D & \num{-2.93(4)} & \num{50.09(90)} & \num{3.9} @ \SI{20}{\celsius}\\
\bottomrule
\end{tabular}
\caption{Caption.}
\end{table}
\end{document}
\num
when you're using anS
-type column to get alignment.