如何将文字放在table(caption)的标题下?
How to put text under the title of table (caption)?
我需要在 table 的标题下添加一个引用,这是我的代码。但是,引用出现在 Table 内容中。我只需要在表格之前的 table 标题下添加引用,而不将其添加到 table 内容中。
\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}
您可以定义两种不同的标题文本,一种用于实际的 table,另一种用于 table 的列表:
\caption[version for LoT]{Dataset statistics \cite{reference_here}}
我需要在 table 的标题下添加一个引用,这是我的代码。但是,引用出现在 Table 内容中。我只需要在表格之前的 table 标题下添加引用,而不将其添加到 table 内容中。
\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}
您可以定义两种不同的标题文本,一种用于实际的 table,另一种用于 table 的列表:
\caption[version for LoT]{Dataset statistics \cite{reference_here}}