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}

更多内容,欢迎加入星球讨论。
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值