我正在使用 apa6 类撰写论文,我想在纵向模式下有一个宽度为两列的表格。但我还希望这个表格有数字。我在 apa6 手册中找到了这一点:
“当图像或表格对于单个列来说太宽时,请使用双列浮动,并在浮动环境标识后用星号标记(参见 LaTeX 手册)”
所以我这样做了:
\documentclass[jou,draftfirst,floatsintext]{apa6}
\begin{document}
\begin{table*}
\begin{tabular}{|c|c|c|c|c|}
\hline
Blah & Blah Blah & Blah & Blah & Blah\\
\hline
Blah & Some more text and more Blah Blah & Blah & Blah & Blah\\
Blah & Blah Blah BlahBlahBlahBlah & Blah & Blah & Blah\\
\hline
\end{tabular}
\vspace*{2em}
\begin{tablenotes}[para,flushleft]
{\small
\textit{Note.}Some notes.
}
\end{tablenotes}
\end{table*}
\end{document}
但是我的桌子顶部没有“桌号”。有什么想法吗?
答案1
您忘记使用 caption 命令。您可以使用以下 MWE:
\documentclass[%
,jou
,draftfirst
,floatsintext
]{apa6}
\usepackage{booktabs}
\begin{document}
\begin{table*}
\begin{threeparttable}
\caption{Caption}
%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular}{lllll}
\toprule
Blah & Blah Blah & Blah & Blah & Blah\\
\midrule
Blah & Some more text and more Blah Blah & Blah & Blah & Blah\\
Blah & Blah Blah BlahBlahBlahBlah & Blah & Blah & Blah\\
\bottomrule
\end{tabular}
%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tablenotes}[para,flushleft]
\small
\item \textit{Notes:} Some notes.
\end{tablenotes}
\end{threeparttable}
\end{table*}
\end{document}