latex - 如何将文本放在表格(标题)的标题下?
问题描述
我需要在我的表格标题下添加一个引用,这是我的代码。但是,参考出现在表内容中。我只需要在表格之前的表格标题下添加参考,而无需将其添加到表格内容中。
\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}
解决方案
您可以定义两种不同的标题文本,一种用于实际表格,一种用于表格列表:
\caption[version for LoT]{Dataset statistics \cite{reference_here}}
推荐阅读
- c++ - C ++根据子字符串的部分匹配将字符串删除为向量中的重复项
- javascript - 复杂 Javascript/Typescript 程序的调试帮助
- python - 删除熊猫中多列中包含一段字符串的所有行
- javascript - 获取 Jquery $form.submit() 调用的结果
- api - dart - 如何使用 http.post 实时获取我的数据?
- android - 半透明白色位图显示为不透明白色
- html - CSS移动图像失真问题
- c - 使用C中的指针从int变量访问字符
- python - 如何在 Python 中提取 Url 字符串中的路径?
- swift - 设置连续轮选择器 - SwiftUI