Latex给表格加脚注

Latex给表格加脚注

 

 

 

博主在用Latex撰写论文的时候遇到了给表格加脚注的情况,然而,网上找到的方法对于博主不适用(表格下方无法显示出脚注),因此在这里记录下解决方案。更新于2019.01.10。

需要用到threeparttable这个包。

  1. 在页面下方显示脚注:
CODE: [SELECT ALL] [EXPAND/COLLAPSE] [DOWNLOAD] (UNTITLED.TEX) OPEN IN OVERLEAF
\documentclass{article}
\usepackage{threeparttable}
 
 
\begin{document}
 
%A table with footnotes appearing at the bottom of the page:
\begin{table}
   \centering
   \begin{tabular}{llll}
   \hline
   column 1 & column 2 & column 3\footnotemark[1] & column 4\footnotemark[2] \\
   \hline
   row 1 & data 1 & data 2 & data 3 \\
   row 2 & data 1 & data 2 & data 3 \\
   row 3 & data 1 & data 2 & data 3 \\
   \hline
   \end{tabular}
   \caption{Table with footnotes at the bottom of the page}
   \label{tab:test1}
\end{table}
\footnotetext[1]{table footnote 1}
\footnotetext[2]{table footnote 2}
 
\clearpage
 
  1. 在表格下面显示脚注。
%A table with footnotes appearing at the bottom of the table:
\begin{table}
   \centering
   \begin{threeparttable}[b]
   \caption{Table with footnotes after the table}
   \label{tab:test2}
   \begin{tabular}{llll}
   \hline
   column 1 & column 2 & column 3\tnote{1} & column 4\tnote{2} \\
   \hline
   row 1 & data 1 & data 2 & data 3 \\
   row 2 & data 1 & data 2 & data 3 \\
   row 3 & data 1 & data 2 & data 3 \\
   \hline
   \end{tabular}
   \begin{tablenotes}
     \item[1] tablefootnote 1
     \item[2] tablefootnote 2
   \end{tablenotes}
  \end{threeparttable}
\end{table}
 
\end{document}
posted @   菜鸡一枚  阅读(7039)  评论(0编辑  收藏  举报
编辑推荐:
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· 写一个简单的SQL生成工具
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
点击右上角即可分享
微信分享提示