I can't get the special table columns from the siunitx
package to work. The numbers render in a normal l
column but not in the special S
coulmn. Here's my minimal example:
\documentclass[12pt,letterpaper]{article}
\usepackage{siunitx}
\begin{document}
\num{1.445e12}
\begin{tabular}{|l|S[tabformat=1.5e12,tabnumalign=left]|}
\hline
\num{1.445e12} & \num{1.445e12} \\
\hline
\num{95} & \num{95} \\
\hline
\end{tabular}
\end{document}
Result here
Not only is exponentiation not working in the table cell, but the numbers aren't even left-aligned. The same result is produced with pdflatex
and xelatex
.
Best Answer
The column type
S
provided bysiunitx
sets the contents of the cell automatically as an argument of\num
. So you definition is equal to:which fails. If you want that the cell isn't interpreted by
\num
you can put the cell in extra curly brackets{TITLE}
.Please note that some names of options have been changed. The package produces an error like
The documentation of
siunitx
lists all changes in an extra table. See section 8.1 Upgrading from version 1.By the way: Avoid vertical lines inside tables and be spare with horizontal.