I'm making a small table with numbers and units given with the \SI{num}{unit}
call. However, the units stretches outside the table width, such that the booktabs
lines (or any other line) looks too short.
An MWE:
\documentclass[11pt, english]{article}
\usepackage{siunitx}
\usepackage{booktabs}
\newcommand{\m}{\hat{m}}
\begin{document}
\begin{table}[H]
\centering
\caption{Some table}
\begin{tabular}{
r
c
S[table-format = 3.2]
}
\toprule
Beskrivelse & Variabel & {Verdi} \\
\midrule
Temperaturer & $T_{\m_2}^\text{rev}$ & 558.3\si{\kelvin} \\
& $T_{\m_4}^\text{rev}$ & 542.3\si{\kelvin} \\
Reversibelt arbeid & $W_{s,1}^\text{rev}$ & 237.5\si{\kilo\watt} \\
& $W_{s,2}^\text{rev}$ & 213.4\si{\kilo\watt} \\
Arbeid & $W_{s,1}$ & 339.3\si{\kilo\watt} \\
& $W_{s,2}$ & 304.9\si{\kilo\watt} \\
Totalt & $W_s$ & 644.2 \si{\kilo\watt} \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
which produces the following
As you can see, it doesn't look good. Any solution to this?
Best Answer
According the questions comments, the answer would be:
I find it strange to have the units centered and that far away from the numbers. For different mantissa lengths, this might be the correct way. But here, the mantissa is set to 3.2. The distance between number and unit can be shortened by the mantissa length 3.1. The alignment is changed by the column option
table-unit-alignment=left
(thanks to @Qrrbrbirlbel).