我正在创建一个必须按小数点对齐的表。我正在使用RevTeX-4.2
类和dcolumn
包。
我的代码如下
\documentclass[reprint,
superscriptaddress,
showkeys,
nofootinbib,
amsmath,amssymb,
aps,
prc,
floatfix,
]{revtex4-2}
\usepackage{dcolumn}% Align table columns on decimal point
\begin{document}
\begin{table}
\centering
% table caption is above the table
\caption{\label{tab:kernels}List of the fission kernels that were able to be extracted with a statistical uncertainty less than $30\%$.}
\begin{ruledtabular}
%
\begin{tabular}{dddd}
%
%header
%
{} & \multicolumn{2}{c}{\textbf{Fission kernel}} & {}\\
{} & \multicolumn{2}{c}{(meV)} & {}\\
\multicolumn{1}{c}{$E_n$} & \multicolumn{1}{c}{Present work} & \multicolumn{1}{c}{Bouland et al.} & \multicolumn{1}{c}{Difference}\\
\multicolumn{1}{c}{(eV)} & {} & {} & \multicolumn{1}{c}{($\%$)}\\
\hline
1.06\footnotemark[1] & 0.00059(3) & 0.00063 & -6\\%STAT
20.4\footnotemark[2] & 0.027(2) & 0.019 & 35\\
38.4\footnotemark[2] & 0.0078(16) & 0.0043 & 59\\
66.6\footnotemark[1] & 0.021(5) & 0.016 & 25\\%STAT
72.8\footnotemark[1] & 0.044(8) & 0.041 & 8\\%STAT
152.0\footnotemark[1] & 0.099(6) & 0.094 & 6\\%STAT
260.5\footnotemark[1] & 0.048(14) & 0.038 & 26\\%STAT
287.0\footnotemark[1] & 0.30(9) & 0.30 & -2\\%STAT
405.0\footnotemark[1] & 0.33(8) & 0.36 & -8\\%STAT
743.1\footnotemark[2] & 0.017(3) & 0.040 & -82\\
750.1\footnotemark[2] & 8.0(9) & 6.9 & 16\\
778.1\footnotemark[1] & 0.020(4) & 0.019 & 3\\%STAT
783.1\footnotemark[1] & 3.8(6) & 3.8 & 1\\%STAT
790.5\footnotemark[1] & 5.5(8) & 5.7 & -3\\%STAT
1402\footnotemark[1] & 10.3(20) & 9.6 & 7\\%STAT
1842\footnotemark[1] & 8.2(8) & 7.7 & 6\\%STAT
1902\footnotemark[1] & 3.2(6) & 2.8 & 12\\%STAT
1917\footnotemark[1] & 20(3) & 21 & -4\\%STAT
1948\footnotemark[1] & 7.5(14) & 6.0 & 22\\%STAT
1955\footnotemark[1] & 18(3) & 20 & -13\\%STAT
2033\footnotemark[2] & 10.3(25) & 6.6 & 43\\
2698\footnotemark[1],\footnotemark[3] & 82(10) & 77 & 6\\%STAT - ENERGY
6551\footnotemark[1] & 12.5(2.2) & - & -\\
7508\footnotemark[1] & 64(19) & - & -\\
8098 \footnotemark[1] & 111(27) & - & -\\
\end{tabular}
%
%
\end{ruledtabular}
\footnotetext[1]{Agreement within statistical uncertainties}
\footnotetext[2]{Discrepancy beyond statistical uncertainties}
\footnotetext[3]{Resonance energy was found higher by $4$ eV}
\end{table}
\end{document}
输出结果如下
我猜这里的问题是我试图将十进制数与整数对齐。dcolumn
根据其文档所以我不明白这个问题...可能是括号,但我需要它们,所以解决这个问题会很棒!
答案1
我引入了一个具有数字对齐的新列,并引入了\rlap
脚注编号的标签,以下是修改后的标签:
\documentclass[reprint,
superscriptaddress,
showkeys,
nofootinbib,
amsmath,amssymb,
aps,
prc,
floatfix,
]{revtex4}
\usepackage{dcolumn}% Align table columns on decimal point
\newcolumntype{z}[1]{D{.}{.}{#1}}%
\begin{document}
\begin{table}
\centering
% table caption is above the table
\caption{\label{tab:kernels}List of the fission kernels that were able to be extracted with a statistical uncertainty less than $30\%$.}
\begin{ruledtabular}
%
\begin{tabular}{z{4,2}z{2,5}z{2,5}z{2}}
%
%header
%
{} & \multicolumn{2}{c}{\textbf{Fission kernel}} & {}\\
{} & \multicolumn{2}{c}{(meV)} & {}\\
\multicolumn{1}{c}{$E_n$} & \multicolumn{1}{c}{Present work} & \multicolumn{1}{c}{Bouland et al.} & \multicolumn{1}{c}{Difference}\\
\multicolumn{1}{c}{(eV)} & {} & {} & \multicolumn{1}{c}{($\%$)}\\
\hline
1.06\rlap{\footnotemark[1]} & 0.00059(3) & 0.00063 & -6\\%STAT
20.4\rlap{\footnotemark[2]} & 0.027(2) & 0.019 & 35\\
38.4\rlap{\footnotemark[2]} & 0.0078(16) & 0.0043 & 59\\
66.6\rlap{\footnotemark[1]} & 0.021(5) & 0.016 & 25\\%STAT
72.8\rlap{\footnotemark[1]} & 0.044(8) & 0.041 & 8\\%STAT
152.0\rlap{\footnotemark[1]} & 0.099(6) & 0.094 & 6\\%STAT
260.5\rlap{\footnotemark[1]} & 0.048(14) & 0.038 & 26\\%STAT
287.0\rlap{\footnotemark[1]} & 0.30(9) & 0.30 & -2\\%STAT
405.0\rlap{\footnotemark[1]} & 0.33(8) & 0.36 & -8\\%STAT
743.1\rlap{\footnotemark[2]} & 0.017(3) & 0.040 & -82\\
750.1\rlap{\footnotemark[2]} & 8.0(9) & 6.9 & 16\\
778.1\rlap{\footnotemark[1]} & 0.020(4) & 0.019 & 3\\%STAT
783.1\rlap{\footnotemark[1]} & 3.8(6) & 3.8 & 1\\%STAT
790.5\rlap{\footnotemark[1]} & 5.5(8) & 5.7 & -3\\%STAT
1402\rlap{\footnotemark[1]} & 10.3(20) & 9.6 & 7\\%STAT
1842\rlap{\footnotemark[1]} & 8.2(8) & 7.7 & 6\\%STAT
1902\rlap{\footnotemark[1]} & 3.2(6) & 2.8 & 12\\%STAT
1917\rlap{\footnotemark[1]} & 20(3) & 21 & -4\\%STAT
1948\rlap{\footnotemark[1]} & 7.5(14) & 6.0 & 22\\%STAT
1955\rlap{\footnotemark[1]} & 18(3) & 20 & -13\\%STAT
2033\rlap{\footnotemark[2]} & 10.3(25) & 6.6 & 43\\
2698\rlap{\footnotemark[1]},\rlap{\footnotemark[3]} & 82(10) & 77 & 6\\%STAT - ENERGY
6551\rlap{\footnotemark[1]} & 12.5(2.2) & - & -\\
7508\rlap{\footnotemark[1]} & 64(19) & - & -\\
8098 \rlap{\footnotemark[1]} & 111(27) & - & -\\
\end{tabular}
%
%
\end{ruledtabular}
\footnotetext[1]{Agreement within statistical uncertainties}
\footnotetext[2]{Discrepancy beyond statistical uncertainties}
\footnotetext[3]{Resonance energy was found higher by $4$ eV}
\end{table}
\end{document}
请注意,我没有您使用的类文件,因此我使用了revtex4
您的文件。