[英]Footnotes for tables in LaTeX
当我对表中的值执行\\footnote{}
,脚注不会显示。 我如何让它显示出来? 另外,是否可以让它显示在表格底部而不是页面底部?
这是 LaTeX 中的一个经典难题。
问题是如何使用浮动(图形和表格,类似的对象)和脚注进行布局。 特别是,很难确定为相关脚注腾出空间不会造成麻烦的浮动位置。 所以标准的tabular
和figure
环境甚至不要尝试。
你能做什么:
\\footnotesize
作为大小)。 您还必须使用\\footnotemark
自己管理符号或数字。 简单,但不是很吸引人,脚注也不会出现在页面底部。tabularx
、 longtable
、 threeparttable[x]
(对Joseph 表示ctable
)或ctable
。[h!]
(或[H]
与 float 包)控制浮动出现的位置,并在同一页面上使用\\footnotetext
将脚注放在您想要的位置。 再次使用\\footnotemark
安装符号。 脆弱,每个实例都需要手工工具。footnote
包提供了savenote
环境,可用于执行此操作。\begin{figure} \begin{minipage}{\textwidth} ... \caption[Caption for LOF]% {Real caption\footnote{blah}} \end{minipage} \end{figure}
附加参考:TeX FAQ item Footnotes in tables 。
没有任何麻烦的最好方法是使用tablefootnote
包中的\\tablefootnote
命令。 将以下内容添加到您的序言中:
\usepackage{tablefootnote}
它不需要额外的技巧就可以工作。
一种可能不太优雅的方法,我认为这只是其他人所说的一种变体,就是对其进行硬编码。 许多期刊都有一个模板,以某种方式允许表格脚注,所以我尽量保持基本的东西。 尽管如此,确实已经有一些令人难以置信的软件包,我认为这个线程很好地指出了这一点。
\documentclass{article}
\begin{document}
\begin{table}[!th]
\renewcommand{\arraystretch}{1.3} % adds row cushion
\caption{Data, level$^a$, and sources$^b$}
\vspace{4mm}
\centering
\begin{tabular}{|l|l|c|c|}
\hline
\textbf{Data} & \textbf{Description} & \textbf{Level} & \textbf{Source} \\
\hline
\hline
Data1 & Description. . . . . . . . . . . . . . . . . . & cnty & USGS \\
\hline
Data2 & Description. . . . . . . . . . . . . . . . . . & MSA & USGS \\
\hline
Data3 & Description. . . . . . . . . . . . . . . . . . & cnty & Census \\
\hline
\end{tabular}
\end{table}
\footnotesize{$^a$ The smallest spatial unit is county, $^b$ more details in appendix A}\\
\end{document}
如果您的表已经在使用tabular
,那么最简单的方法是将其切换到longtable
,记住添加
\usepackage{longtable}
例如:
\begin{longtable}{ll}
2014--2015 & Something cool\footnote{first footnote} \\
2016-- & Something cooler\footnote{second footnote}
\end{longtable}
使用 minipage 环境。 下面是一个例子:
\begin{minipage}{6cm}
\begin{tabular}{|l|c|c|}
\hline
A & 1 & 2 \footnote{This is a footnote.} \\
\hline
B & 2 & 1 \\
\hline
C & 3 & 3 \\
\hline
\end{tabular}
\end{minipage}
可能最好的解决方案是查看threeparttable/threeparttablex 包。
你可以在最后添加一个\\multirow
。 下面是一个例子:
\begin{table}[]
\centering
\caption{Caption}
\label{tab:my_label}
\begin{tabular}{l c c}
\toprule
\multirow{2}{*}{Propriedades} & \multicolumn{2}{c}{Resultados do modelo} & Dados \\
& MN S & MN F & experimentais \\ \midrule
Resistência de entrada ($R_{in}$), M$\Omega$ & 2,2 & 0,9 & \\
Constante de tempo ($\tau$), ms & 10,3 & 5,6 & \\
Reobase ($I_{rheo}$), nA & 4,5 & 17 & \\
Duração da AHP, ms & 137,2 & 66,2 & \\ \bottomrule
\multicolumn{4}{l}{\small *THIS IS A NICE FOOTNOTE.} \\
\end{tabular}
\end{table}
\begin{figure}[H]
\centering
{\includegraphics[width=1.0\textwidth]{image}}
\caption{captiontext\protect\footnotemark}
\label{fig:}
\end{figure}
\footnotetext{Footnotetext}
在表格中,我使用了 \\footnotetext。
@dmckee 所说的。
编写自己的定制脚注排队代码并不难。 你需要做的是:
\\footnote
以将脚注宏添加到您的队列中;如果这很有趣,我会展示一些执行此操作的代码。
使用“表格笔记”
\begin{table*}
\centering
\caption{}
\begin{tabular}{|c|c|}
--------
\end{tabular}
##################
\begin{tablenotes}
\item[*] \\Insert footnote here
\end{tablenotes}
##################
\label{tab: label}
\end{table*}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.