I'm trying to align numbers in a table using siunitx. With this small example:
Code: Select all
\documentclass{article}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{S[table-format=3.2]}% syntax for siunitx v2; for v1 use "tabformat"
555 \\
7.77 \\
99.9
\end{tabular}
\end{document}
Code: Select all
$ pdflatex numbers.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
restricted \write18 enabled.
entering extended mode
(./numbers.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, lo
aded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo)) (./siunitx.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty)
(/usr/share/texlive/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/share/texmf/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex))))
(./numbers.aux) (/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd)
! Package siunitx Error: Unknown option `table-format'.
See the siunitx package documentation for explanation.
Type H <return> for immediate help.
...
l.7 5
55 \\
?
tabformat
in place of table-format
, but the result is the same.Am I missing something? Beyond siunitx, is there any other package that does the same?
Thank you.