当我添加 ** 来表示重要性水平时,我收到了过满警告。任何避免这种情况的建议都将不胜感激!
\documentclass{article}
\usepackage{booktabs,siunitx}
\sisetup{table-format=1.3} % default numerical column spec
\begin{document}
\begin{table}
\sisetup{table-format=1.3}
\centering
\begin{tabular}{
l
S[table-format=2]
S[table-format=2.3]
SS
l
S[table-format=2.3]
S[table-format=2.3]
S
l
l
S[table-format=2]
S[table-format=2.3]
SS
l
S[table-format=2.3]
S[table-format=2.3]
S
l
S[table-format=2]
S[table-format=2.3]
SS
}
\bottomrule
\addlinespace
& & \multicolumn{2}{c}{Normal} & & \multicolumn{2}{c}{Student-t} & & \multicolumn{2}{c}{GED} \ \\
\cmidrule(lr){3-4} \cmidrule(lr){6-7} \cmidrule(lr){9-10} % center non-numerical info (A, B, ...) by placing them in braces
& {s} & {KLIC} & {CSL} & & {KLIC} & {CSL} & & {KLIC} & {CSL} \\
\midrule % leave gap between the two rules
GARCH
& 1 & 0.158 & 1.350 & & -0.425 & 5.336 & & 0.999 & 0.999 \\
& 5 & 0.482 & 2.343** & & -0.468 & 10.791 & & 0.999 & 0.999\\
& 10 & 1.048 & 7.561 & & -0.510 & 15.779 & & 0.999 & 0.999\\
\addlinespace
GJR
& 1 & 0.999 & 0.010 & & 1.228 & 6.429 & & 0.999 & 0.999\\
& 5 & 0.999 & 0.010 & & 1.350 & 8.249 & & 0.999 & 0.999\\
& 10 & 0.999 & 0.008 & & 1.428 & 11.192 & & 0.999 & 0.999\\
\addlinespace
MS-GARCH
& 1 & 0.999 & 0.998 & & 0.999 & 0.999 & & 0.999 & 0.999\\
& 5 & 0.999 & 0.812 & & 0.999 & 0.999 & & 0.999 & 0.999\\
& 10 & 0.999 & 0.811 & & 0.999 & 0.999 & & 0.999 & 0.999\\
\bottomrule
\end{tabular}
\end{table}
\end{document}
答案1
可以使用选项table-text-space-post
来处理后缀的额外空间。该示例还修复了列规范和顶部规则:
\documentclass{article}
\usepackage{booktabs,siunitx}
\sisetup{table-format=1.3} % default numerical column spec
\begin{document}
\begin{table}
\sisetup{table-format=1.3}
\centering
\begin{tabular}{
l
S[table-format=2]
S[table-format=2.3]
S[table-space-text-post={**}]
l
S[table-format=-1.3]
S[table-format=2.3]
l
S
S
}
\toprule
& & \multicolumn{2}{c}{Normal} & &
\multicolumn{2}{c}{Student-t} & & \multicolumn{2}{c}{GED} \\
\cmidrule(lr){3-4} \cmidrule(lr){6-7} \cmidrule(lr){9-10}
% center non-numerical info (A, B, ...) by placing them in braces
& {s} & {KLIC} & {CSL} & & {KLIC} & {CSL} & & {KLIC} & {CSL} \\
\midrule % leave gap between the two rules
GARCH
& 1 & 0.158 & 1.350 & & -0.425 & 5.336 & & 0.999 & 0.999 \\
& 5 & 0.482 & 2.343** & & -0.468 & 10.791 & & 0.999 & 0.999\\
& 10 & 1.048 & 7.561 & & -0.510 & 15.779 & & 0.999 & 0.999\\
\addlinespace
GJR
& 1 & 0.999 & 0.010 & & 1.228 & 6.429 & & 0.999 & 0.999\\
& 5 & 0.999 & 0.010 & & 1.350 & 8.249 & & 0.999 & 0.999\\
& 10 & 0.999 & 0.008 & & 1.428 & 11.192 & & 0.999 & 0.999\\
\addlinespace
MS-GARCH
& 1 & 0.999 & 0.998 & & 0.999 & 0.999 & & 0.999 & 0.999\\
& 5 & 0.999 & 0.812 & & 0.999 & 0.999 & & 0.999 & 0.999\\
& 10 & 0.999 & 0.811 & & 0.999 & 0.999 & & 0.999 & 0.999\\
\bottomrule
\end{tabular}
\end{table}
\end{document}
顺便说一句,黑框是由选项draft
(或长度设置\overfullrule
)引起的,未在 MWE 中显示。
列标题CSL
也可以仅以数值为中心:
{CSL\hphantom{**}}