Deluxetable 中的额外对齐标签已更改为 \cr

Deluxetable 中的额外对齐标签已更改为 \cr

我试图找到我的额外列、、&\\,但我收到一条错误\enddataExtra alignment tab changed to \cr并且我在每个 tablenotetext 上都收到警告,说Underfull \hbox (badness 10000) detected......

\documentclass{article}
\begin{document}

\begin{deluxetable}{@{\extracolsep{4pt}}llrlrlrlrlr}
\tablecaption{K-S Test Probabilities \label{table:KS}}
\tablewidth{0pc}
\tabletypesize{\scriptsize}
\tablehead
{
\colhead{}& \multicolumn{2}{c}{$N^{\rm{med}}_{\sigma}$}& \multicolumn{2}{c}{$N^{\rm{Gott}}_{\sigma}$\  \tablenotemark{c}}& \multicolumn{2}{c}{$N^{\rm{wm+}}_{\sigma}$}& \multicolumn{2}{c}{$N^{\rm{wm-}}_{\sigma}$}& \multicolumn{2}{c}{$N^{\rm{mean}}_{\sigma}$}
&\cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}
\colhead{PDF}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}
}
\startdata
Gaussian & 1 & 69.4 & 1 & 53.4 & 1 & 11.9 & 1 & 11.7 & 1 & 27.9\\
Gaussian & 0.85 & 99.5 & 1.24 & 99.6 & 1.68 & 99.9 & 1.73 & 99.8 & 0.76 & 97.9\\
Laplace & 1 & 39.0 & 1 & 82.6 & 1 & 47.9 & 1 & 45.3 & 1 & 19.7\\
Laplace & 0.77 & 93.6 & 1.13 & 97.7 & 1.40 & 99.8 & 1.52 & 99.9 & 0.70 & 90.4\\
Cauchy & 1 & 4.1 & 1 & 32.8 & 1 & 64.6 & 1 & 88.7 & 1 & 1.9\\
Cauchy & 0.51 & 84.6 & 0.70 & 84.8 & 0.77 & 90.2 & 0.83 & 97.2 & 0.47 & 83.3\\
&\multicolumn{2}{c}{$n=100$}&\multicolumn{2}{c}{$n=3$}&\multicolumn{2}{c}{$n=2$}&\multicolumn{2}{c}{\dotfill\tablenotemark{e}}&\multicolumn{2}{c}{$n=100$}
&\cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}
Student's $t$\tablenotemark{d} & 1 & 67.7 & 1 & 97.5 & 1 & 81.1 & \dotfill & \dotfill & 1 & 27.2\\
&\multicolumn{2}{c}{$n=100$}&\multicolumn{2}{c}{$n=4$}&\multicolumn{2}{c}{$n=5$}&\multicolumn{2}{c}{$n=2$}&\multicolumn{2}{c}{$n=61$}
&\cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}
Student's $t$\tablenotemark{d}& 0.85 & 99.4 & 1.11 & 99.7 & 1.50 & 99.9 & 1.28 & 99.9 & 0.75 & 97.9\\
\noalign{\vskip 1mm}
\enddata
\tablenotetext{a}{Scale factor...}
\tablenotetext{b}{This is the...}
\tablenotetext{c}{We use the...}
\tablenotetext{d}{We allow...}
\tablenotetext{e}{The K-S test...}
\end{deluxetable}

\end{document}

我一直没能找到错误,而且我尽可能多地查看了类似的问题,非常感谢大家的帮助!?!编译时出现的错误与我使用 aastex v5.2 和 v6.1 时出现的错误相同。

答案1

它应该是

\\ \cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}

代替

&\cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}

完整代码:

\documentclass{aastex61}
\begin{document}

\begin{deluxetable}{@{\extracolsep{4pt}}llrlrlrlrlr}
\tablecaption{K-S Test Probabilities \label{table:KS}}
\tablewidth{0pc}
\tabletypesize{\scriptsize}
\tablehead
{
\colhead{}&
  \multicolumn{2}{c}{$N^{\mathrm{med}}_{\sigma}$}&
  \multicolumn{2}{c}{$N^{\mathrm{Gott}}_{\sigma}$\  \tablenotemark{c}}&
  \multicolumn{2}{c}{$N^{\mathrm{wm+}}_{\sigma}$}&
  \multicolumn{2}{c}{$N^{\mathrm{wm-}}_{\sigma}$}&
  \multicolumn{2}{c}{$N^{\mathrm{mean}}_{\sigma}$} \\
\cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}
\colhead{PDF}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}& \colhead{$S$\tablenotemark{a}}& 
\colhead{P$(\%)$\tablenotemark{b}}
}
\startdata
Gaussian & 1 & 69.4 & 1 & 53.4 & 1 & 11.9 & 1 & 11.7 & 1 & 27.9\\
Gaussian & 0.85 & 99.5 & 1.24 & 99.6 & 1.68 & 99.9 & 1.73 & 99.8 & 0.76 & 97.9\\
Laplace & 1 & 39.0 & 1 & 82.6 & 1 & 47.9 & 1 & 45.3 & 1 & 19.7\\
Laplace & 0.77 & 93.6 & 1.13 & 97.7 & 1.40 & 99.8 & 1.52 & 99.9 & 0.70 & 90.4\\
Cauchy & 1 & 4.1 & 1 & 32.8 & 1 & 64.6 & 1 & 88.7 & 1 & 1.9\\
Cauchy & 0.51 & 84.6 & 0.70 & 84.8 & 0.77 & 90.2 & 0.83 & 97.2 & 0.47 & 83.3\\
&\multicolumn{2}{c}{$n=100$}
&\multicolumn{2}{c}{$n=3$}
&\multicolumn{2}{c}{$n=2$}
&\multicolumn{2}{c}{\dotfill\tablenotemark{e}}&
\multicolumn{2}{c}{$n=100$}
\\ \cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}
Student's $t$\tablenotemark{d} & 1 & 67.7 & 1 & 97.5 & 1 & 81.1 & \dotfill & \dotfill & 1 & 27.2\\
&\multicolumn{2}{c}{$n=100$}&
\multicolumn{2}{c}{$n=4$}&
\multicolumn{2}{c}{$n=5$}&
\multicolumn{2}{c}{$n=2$}&
\multicolumn{2}{c}{$n=61$}
\\ \cline{2-3} \cline{4-5} \cline{6-7} \cline{8-9} \cline{10-11}
Student's $t$\tablenotemark{d}& 0.85 & 99.4 & 1.11 & 99.7 & 1.50 & 99.9 & 1.28 & 99.9 & 0.75 & 97.9\\
\enddata
\tablenotetext{a}{Scale factor...}
\tablenotetext{b}{This is the...}
\tablenotetext{c}{We use the...}
\tablenotetext{d}{We allow...}
\tablenotetext{e}{The K-S test...}
\end{deluxetable}

\end{document}

在此处输入图片描述

顺便说一句,\rm已被弃用 20 多年了;在上述上下文中,\mathrm应该使用。

相关内容