LaTeX中表格的脚注

pol*_*olk 80 latex

当我\footnote{}在表格中输入值时,脚注不会显示.如何让它显示出来?此外,它是否可以让它显示在表格的底部而不是页面的底部?

dmc*_*kee 69

这是LaTeX的经典难度.

问题是如何使用浮点数(图形和表格,类似对象)和脚注进行布局.特别是,很难为浮动选择一个地方,确保为相关脚注腾出空间不会造成麻烦.所以标准tabularfigure环境甚至都没有尝试过.

你能做什么:

  1. 假装.只需在标题的底部放置一个硬编码的垂直跳过,然后自己编写脚注(\footnotesize用于大小).您还必须自己管理符号或编号\footnotemark.简单但不太吸引人,脚注没有出现在页面底部.
  2. 使用tabularx,longtable,threeparttable[x](荣誉给约瑟夫)或ctable支持这种行为.
  3. 手动管理.使用[h!](或[H]使用float包)来控制浮动将出现的位置,并\footnotetext在同一页面上将脚注放在您想要的位置.再次,用于\footnotemark安装符号.脆弱,需要手工工具每个实例.
  4. footnotes软件包提供了savenote可用于执行此操作的环境.
  5. Minipage it(代码被彻底窃取,并阅读有关长字幕文本的discalimer):
    \begin{figure}
      \begin{minipage}{\textwidth}
        ...
        \caption[Caption for LOF]%
          {Real caption\footnote{blah}}
      \end{minipage}
    \end{figure}

其他参考:http://www.tex.ac.uk/cgi-bin/texfaq2html?label = footintab.


Fra*_*ini 54

最简单的方法是使用包中的 \tablefootnote命令tablefootnote.在序言中添加以下内容:

\usepackage{tablefootnote}
Run Code Online (Sandbox Code Playgroud)

它只是工作而不需要额外的技巧.

  • 在我的情况下使用\ tablefootnote使脚注显示出来,但遗憾的是在页面之前的一个表中. (16认同)
  • 你有一个例子来证明这种行为吗? (2认同)
  • 有没有办法让脚注与桌子在同一页面上? (2认同)
  • 这在嵌套表中对我不起作用(脚注重复次数与嵌套表一样多次) (2认同)
  • 使用 float 包和 [H] 为我工作,以便在表格的同一页上添加脚注。 (2认同)

小智 16

在此输入图像描述

\n

你可以添加一个\\multirow在最后添加一个。这是一个例子:

\n
\\begin{table}[]\n    \\centering\n    \\caption{Caption}\n    \\label{tab:my_label}\n    \\begin{tabular}{l c c}  \n    \\toprule\n\\multirow{2}{*}{Propriedades}                 & \\multicolumn{2}{c}{Resultados do modelo} & Dados \\\\\n                                              & MN S    & MN F      &  experimentais \\\\ \\midrule\nResist\xc3\xaancia de entrada ($R_{in}$), M$\\Omega$  & 2,2     & 0,9       & \\\\\nConstante de tempo ($\\tau$), ms               & 10,3    & 5,6       & \\\\\nReobase ($I_{rheo}$), nA                      & 4,5     & 17        & \\\\\nDura\xc3\xa7\xc3\xa3o da AHP, ms                            & 137,2   & 66,2      & \\\\ \\bottomrule\n\\multicolumn{4}{l}{\\small *THIS IS A NICE FOOTNOTE.} \\\\\n    \\end{tabular}\n\n\\end{table}\n
Run Code Online (Sandbox Code Playgroud)\n


Dou*_*ubt 10

如果您的表已经在使用tabular,那么最简单的方法是将其切换到longtable,记住要添加

\usepackage{longtable}
Run Code Online (Sandbox Code Playgroud)

例如:

\begin{longtable}{ll}
  2014--2015 & Something cool\footnote{first footnote} \\
  2016-- & Something cooler\footnote{second footnote}
\end{longtable}
Run Code Online (Sandbox Code Playgroud)

  • 这对我不起作用.它仍然没有显示出来.除了添加该行之外,还有什么我必须改变的吗? (2认同)
  • Aha,表的开始/结束命令也必须改变.疑难杂症. (2认同)
  • 您能提供一个完整的例子吗?我无法让它工作 (2认同)
  • 像魅力一样工作. (2认同)

Sco*_*and 8

一种可能不那么优雅的方法,我认为这只是其他人所说的一种变体,就是硬编码.许多期刊都有一个模板,在某种程度上允许表格脚注,所以我试着保持基本的东西.虽然,那里确实有一些令人难以置信的软件包,我认为这个线程很好地指出了这一点.

\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}
Run Code Online (Sandbox Code Playgroud)

从上面的代码输出


wgz*_*hao 7

使用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}
Run Code Online (Sandbox Code Playgroud)


Jos*_*ght 5

可能最好的解决方案是查看threeparttable/threeparttablex包.


M. *_* B. 1

在表格中我使用了 \footnotetext。