The title pretty much says it all. I am writing up a paper that needs to be in revtex4, but for some reason both the siunitx and dcolumn packages are not working correctly. If I comment out my document class and go with article, everything is fine. Furthermore, the units from siunitx work in revtex4, just not the number column align.
The example below works for me, but when I comment out the article class and go with revtex4, I get errors starting with the warning: Column d is already defined on input line 8, then \inaccessible on line 16.
%\documentclass[aps, superscriptaddress, twocolumn, nofootinbib]{revtex4}
\documentclass{article}
\usepackage{siunitx}
\usepackage{dcolumn}
\newcolumntype{d}[1]{D{.}{.}{#1}}
\begin{document}
Here are units that work \si{\micro\metre\joule}.
Example using S tab
\begin{tabular}{S[tabformat=3.2]}% syntax for siunitx v2; for v1 use "tabformat"
555 \\
7.77 \\
99.9
\end{tabular}
Example using d tab
\begin{tabular}{d{3.2}}
555 \\
7.77 \\
99.9
\end{tabular}
\end{document}
I can't be the first to have this issue with revtex4, so I'm open to suggestions to fix my problem.
table-format
and nottabformat
.tabformat
is v1 syntax :)