![threeparttable 中注释前的额外空格](https://linux22.com/image/412690/threeparttable%20%E4%B8%AD%E6%B3%A8%E9%87%8A%E5%89%8D%E7%9A%84%E9%A2%9D%E5%A4%96%E7%A9%BA%E6%A0%BC.png)
我正在使用 threeparttable 向表格添加注释,但它编译时会在注释和表格底部之间留出一个额外的空格。我希望注释与表格齐平,但似乎无法弄清楚为什么它会这样。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{url}
\usepackage{hyperref}
\usepackage[T1]{fontenc}
\emergencystretch=1em
\usepackage{apacite}
\bibliographystyle{apacite}
\usepackage{lmodern,textcomp}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{float}
\usepackage{arydshln}
\usepackage{caption}
\usepackage{amsmath}
\usepackage{booktabs,caption}
\usepackage{threeparttable}
\usepackage[bottom]{footmisc}
\usepackage[nohead]{geometry}
\renewcommand{\baselinestretch}{1.5}
\geometry{left=1in,right=1in,top=1in,bottom=1in}
\begin{document}
\begin{table}[H]
\begin{threeparttable}
\centering
\caption{Title of table}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{7}{c}}
\toprule
& \multicolumn{3}{c}{Class 1} & \multicolumn{3}{c}{Class 2} \\
\cmidrule(lr){2-4}\cmidrule(lr){5-7}
&\multicolumn{1}{c}{(1)} &\multicolumn{1}{c}{(2)} &\multicolumn{1}{c}{(3)}
&\multicolumn{1}{c}{(4)}
&\multicolumn{1}{c}{(5)}
&\multicolumn{1}{c}{(6)} \\
\midrule
Outcome & 0.055 & 0.053 & -0.010 & 0.064 & 0.034 & 0.023 \\
& (0.066) & (0.072) & (0.066) & (0.052) & (0.052) & (0.068) \\
\bottomrule
\label{tab:main_est}
\end{tabular}
\begin{tablenotes}
\small
\item Notes: Notes are too far from table. Significance levels are indicated as 0.05\sym{*} 0.01\sym{**} 0.001\sym{***}
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
答案1
您的表格环境在 后多了一个文本行\bottomrule
,其中仅包含不可见的\label
锚点。您应该将 移到\label
其他位置。
此后,如果您发现音符太接近,您可以将最终音符\bottomrule
改为\midrule
。