Consider the following MWE:
Code: Select all
\documentclass{article}
\usepackage[locale=DE]{siunitx}
\usepackage{booktabs}
\begin{document}
\begin{table}
\centering
\begin{tabular}{
S[table-figures-integer=1,table-figures-decimal=1]
S[table-figures-integer=2,table-figures-decimal=3]
@{\,}
s[table-unit-alignment=left]
S[table-figures-integer=2,table-figures-decimal=3]
@{\,}
s[table-unit-alignment=left]
}
\toprule
\multicolumn{1}{c}{Something random~A} &
\multicolumn{2}{c}{Something random~B} &
\multicolumn{2}{c}{Something random~C} \\
\midrule
6.5 & 2.35 & \percent & 2.35 & \percent \\
7 & 34.234 & \percent & 34.234 & \percent \\
7.5 & 3.762 & \percent & 3.762 & \percent \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
(1) The first column: I would like to vertically align ``7'' in the second row of numbers with the 6 in ``6,5'' and the 7 in ``7,5''.
(2) The second and third column: I would like to horisontically center the numbers and units relative to ``Something random B'' and ``Something random C'', resp.
How do I do this?
Thank you in advance!
P.S. I have tried to look at the
