我需要写一篇类似《金融杂志》风格的论文。我在尝试创建带有注释的表格时遇到了问题。我在此附上一张表格应有的样子:
我希望你能帮助我解决代码问题。谢谢
代码:
\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}