I am working with the REVTeX4.1 class and I want to have some numbers aligned to their decimal point on tables. Following the REVTeX 4 Author’s Guide p13, I am using the dcolumn package. However, when I include it, the vertical spacing in the tables decreases, too much in my opinion. I would like to know if there is a procedure to both align to decimal places, and to keep the vertical spacing on tables.
Here is the code before adding the dcolumn package, with nice vertical spacing but no decimal point alignment.
\documentclass[aps,pra,reprint]{revtex4-1}
\begin{document}
\begin{table}
\begin{ruledtabular}
\begin{tabular}{ccc}
Property & Value & Unit\\
\colrule
$\epsilon_{\text{w}}$ & $7.2\times 10^{-5}$ & g cm/V$^2$s$^2$ \\
$\eta$ & $1.33\times10^{-2}$ & g/cm s\\
\end{tabular}
\end{ruledtabular}
\end{table}
\end{document}
Here is after adding the dcolumn spacing, where the table seems to loose the vertical spaces between its rows, but the numbers are aligned to the decimal point.
\documentclass[aps,pra,reprint]{revtex4-1}
\usepackage{dcolumn}
\begin{document}
\begin{table}
\begin{ruledtabular}
\begin{tabular}{cdc}
Property & \text{Value} & Unit\\
\colrule
$\epsilon_{\text{w}}$ & 7.2\times 10^{-5} & g cm/V$^2$s$^2$ \\
$\eta$ & 1.33\times10^{-2} & g/cm s\\
\end{tabular}
\end{ruledtabular}
\end{table}
\end{document}
siunitx
?S
columns fromsiunitx
don't play well withruledtabular
, unfortunately.