How to preserve the leading zeros of the errors in a table using siunitx
' S
-column type?
\documentclass[ngerman,english]{scrreprt}
\usepackage{babel}
\usepackage[locale=DE]{siunitx}
\sisetup{separate-uncertainty}
\sisetup{multi-part-units=single}
\usepackage{booktabs}
\begin{document}
\selectlanguage{ngerman}
\begin{tabular}{l*{2}{S[table-figures-decimal=1,
table-text-alignment=left,
table-number-alignment=left,
table-figures-uncertainty=1]}}
\toprule
A & {Column1 symbol $\Delta$} & {Column2 symbol $\delta$} \\
& {Column1} & {Column2} \\
\midrule
B & -5.0 \pm 1.0 & -10.0 \pm 02.0 \\
C & 0.0 \pm 1.0 & 5.0 \pm 02.0 \\
D & -20.0 \pm 1.0 & -100.0 \pm 20.0 \\
\bottomrule
\end{tabular}
\end{document}
minimum-integer-digits = 2
, but this applies to all input. The package normalises input as a first step, so the unnecessary leading zeros are dropped before any formatting.minimum-integer-digits = 2
changes the numbers but has no effect on the errors.