I'm trying to align complex numbers in the middle of a table column using the siunitx package for nicer alignment, but the numbers are centring based on where the decimal point would be on the real parts.
Here's my MWE:
\documentclass[a4paper]{article}
\usepackage{booktabs}
\usepackage{array}
\usepackage{siunitx}
\sisetup{
output-complex-root = \ensuremath{\mathrm{j}},
complex-root-position = before-number
}
\begin{document}
\begin{table}[h!]
\caption{Bus Loads}
\label{fig:figurename}
\centering
\begin{tabular}{l|S[]}
\toprule
\textbf{Bus} & \multicolumn{1}{c}{\textbf{Bus Load (MVA)}} \\
\midrule
b1 & 50 + j30.99 \\
b2 & 170 + j105.35\\
b3 & 200 + j123.94 \\
b4 & 150 + j49.58 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
And here's the output:

I'd like the complex numbers to be more aligned in the centre of the column. Any idea how to do this?
I've tried passing the option table-number-alignment=left to the column, but then the imaginary part disappears:



dcolumnpackage just to see if it is not limited tosiunitxand I ended up with the same alignment. I don't know if it is a related problem though. – hpesoj626 Nov 21 '12 at 06:12