![如何在乳胶中的表格上方添加注释?](https://linux22.com/image/375235/%E5%A6%82%E4%BD%95%E5%9C%A8%E4%B9%B3%E8%83%B6%E4%B8%AD%E7%9A%84%E8%A1%A8%E6%A0%BC%E4%B8%8A%E6%96%B9%E6%B7%BB%E5%8A%A0%E6%B3%A8%E9%87%8A%EF%BC%9F.png)
我需要写一篇类似《金融杂志》风格的论文。我在尝试创建带有注释的表格时遇到了问题。我在此附上一张表格应有的样子:
我希望你能帮助我解决代码问题。谢谢
代码:
\begin{table}[h!]
\centering
\begin{threeparttable}
\caption{} \label{Table1}{\textbf{Descriptive Statistics for the Industry. 2007 - 2017}}
\begin{tablenotes}
\small
\item Text here
\end{tablenotes}
\begin{tabular}{lcccc}
....
\end{tabular}
\end{threeparttable}
\end{table}
答案1
我觉得threeparttable
这会让您感到困惑。删除它,然后在标签或标题下书写,无论您喜欢哪个。
\documentclass{article}
\usepackage{booktabs,caption}
%\usepackage{threeparttable}
\begin{document}
\begin{table}[h!]
\centering
\caption{Sample ANOVA table}
write here option 1 \\
\label{Table1}{\textbf{Descriptive Statistics for the Industry. 2007 - 2017}} \\
write here option 2 \\
\begin{tabular}{lcccc}
\toprule
Stubhead & \( df \) & \( f \) & \( \eta \) & \( p \) \\
\midrule
& \multicolumn{4}{c}{Spanning text} \\
Row 1 & 1 & 0.67 & 0.55 & 0.41 \\
Row 2 & 2 & 0.02 & 0.01 & 0.39 \\
Row 3 & 3 & 0.15 & 0.33 & 0.34 \\
Row 4 & 4 & 1.00 & 0.76 & 0.54 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
答案2
这对你有什么用处?
\documentclass{article}
\usepackage{booktabs,caption}
%\usepackage{threeparttable}
\begin{document}
\begin{table}[h!]
\centering
\caption{Sample ANOVA table}
write here option 1 \\
\label{Table1}{\textbf{Descriptive Statistics for the Industry. 2007 - 2017}} \\
write here option 2 \\
\begin{tabular}{lcccc}
\multicolumn{5}{@{}p{3in}@{}}{Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. } \\
\toprule
Stubhead & \( df \) & \( f \) & \( \eta \) & \( p \) \\
\midrule
& \multicolumn{4}{c}{Spanning text} \\
Row 1 & 1 & 0.67 & 0.55 & 0.41 \\
Row 2 & 2 & 0.02 & 0.01 & 0.39 \\
Row 3 & 3 & 0.15 & 0.33 & 0.34 \\
Row 4 & 4 & 1.00 & 0.76 & 0.54 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}