Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am having a problem with aligning columns using siunitx. The example goes like this:

\usepackage{siunitx}
\sisetup{separate-uncertainty, table-auto-round}

\begin{sidewaystable}[p]
  \myfloatalign
\caption[Abundances]{Abundances.}
\label{tbl:abundance}
\begin{tabularx}{\textwidth}{S[table-format=2]XS[table-format=-1.2(2)]S[table-format=2]}
 \toprule
Z & Element & $\phi = 0.31$ & N \\
  \midrule
6  &  $\mathrm{C \, I }$ & -0.08(22) &  3  \\
25 &  $\mathrm{Mn\, II}$ &  0.94     &  1  \\
  \bottomrule
  \end{tabularx}
\end{table}

The problem is that the numbers with no reported uncertainty are flushed right so that they are aligned underneath the uncertainty values of the other numbers. Is there a way to make all the data values align under each other?

share|improve this question
Once I'd got a workable example, this looks fine for me: which version of siunitx do you have installed? – Joseph Wright Nov 6 '12 at 22:08
I'm using v1.3c – sfrimann Nov 6 '12 at 22:22
Something odd going on, then, your options (separate-uncertainty, etc.) are for version 2 and later! There was a bug about table alignment and uncertainties, which was fixed a while ago: all I can suggest is getting an up-to-date siunitx. – Joseph Wright Nov 6 '12 at 22:29
I'm sorry. I was looking at an old installation directory. It's v2.5c that I'm using – sfrimann Nov 6 '12 at 22:37
You need version 2.5i or later: that was when I fixed this bug. – Joseph Wright Nov 7 '12 at 6:55

closed as too localized by Joseph Wright Nov 20 '12 at 8:07

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.