I am having trouble getting the multirow
command to work with the siunitx
package in the following example:
\documentclass[]{article}
\usepackage{siunitx}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{table}[tbh]
\centering
\begin{tabular}{llSSSS}
\toprule
A & B & {C} & {D} & {E} & {F} \\
\midrule
\multirow{2}{*}{Value 1} & \multirow{2}{*}{1.2e-4} & \multirow{2}{*}{1.0} & 3.0 & \multirow{2}{*}{1.0} & 0.3 \\
& & & 4.0 & & 0.7 \\ \midrule
\multirow{2}{*}{Value 2} & 3.2e-4 & \multirow{2}{*}{2.0} & \multirow{2}{*}{1.0} & \multirow{2}{*}{9.2} & 0.4 \\
& 1.2e-8 & & & & 0.5 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
The only way I can remedy the error is to replace
\begin{tabular}{llSSSS}
with
\begin{tabular}{llcccc}
This, however, defeats the purpose of using the siunitx
package in the present case.
Does anyone have a solution to this problem? Thank you in advance.
booktabs
package, and you also need to have braces around the non-numerical content inS
columns, e.g.{D}
. I took the liberty of fixing those things in your example, hope that's fine.{\multirow{}...{}}
then you deal with the error, but might not get the expected alignment.TeX capacity exceeded, sorry [grouping levels=255]. ...\tablenum[table-format=1.2e-1]{1.2e-4}}} &