首页 > 解决方案 > 如何将文本放在表格(标题)的标题下?

问题描述

我需要在我的表格标题下添加一个引用,这是我的代码。但是,参考出现在表内容中。我只需要在表格之前的表格标题下添加参考,而无需将其添加到表格内容中。

\begin{document}
\begin{table}[]
    \fontsize{8}{10}\selectfont
    \tabcolsep=0.3cm
\centering
\caption{Dataset statistics \cite{reference_here}} 
%\vspace{-.2cm}
\label{table:dataset}
\begin{tabular}{@{}lr@{}}
\toprule
\textbf{Statistic}                               & \textbf{Count} \\ \midrule
\# of A                  & 800    \\
\# of B                &   36,681   \\
\# of C                &   36,681   \\
\# of D                &  112,480 \\
Total E & 723,360 \\

\bottomrule
\end{tabular}
\vspace{-.3cm}
\end{table}
\end{document}

标签: latex

解决方案


您可以定义两种不同的标题文本,一种用于实际表格,一种用于表格列表:

\caption[version for LoT]{Dataset statistics \cite{reference_here}}  

推荐阅读