1

When I use the SI table format, I usually have the numbers centered below the column name. However, when I add some uncertainty part, the contents appear left aligned (or maybe centered on the decimal separator of the uncertainty part?) in the following table:

\begin{table}[htbp]
    \caption{Some caption.}
    \label{tab:MyTab}
    \centering
    \begin{tabular}{lS[table-format=4.0]S[table-format=2.0]S[table-format=3.0]S[table-format=3.1 \pm 1.1, separate-uncertainty]}
    \toprule
    Architecture & {Tile size} & {BS} & {Epochs} & {Seconds per epoch}\\
    \midrule
    U-Net & 1024 & 4 & 100 & 10\\
        & 512 & 8 & 120 & 198.9 \pm 6.6\\
    \bottomrule
    \end{tabular}
\end{table}

The output looks like this:

Table output

Is there a way to align the numbers more beautifully, i.e., centered?

1 Answer 1

2

It looks like you want table-parse-only, e.g.

\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}

\begin{table}[htbp]
    \caption{Some caption.}
    \label{tab:MyTab}
    \centering
    \begin{tabular}{lS[table-format=4]S[table-format=2]
      S[table-format=3]S[separate-uncertainty, table-parse-only]}
    \toprule
    Architecture & {Tile size} & {BS} & {Epochs} & {Seconds per epoch}\\
    \midrule
    U-Net & 1024 & 4 & 100 & 10\\
        & 512 & 8 & 120 & 198.9 \pm 6.6\\
    \bottomrule
    \end{tabular}
\end{table}


\end{document}
1
  • Thanks for the fast reply! Jun 30 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.