我处于tabular
浮动table
环境中,想在该表中放置脚注,而脚注文本应出现在表格所在页面的底部。我尝试了以下方法:
\footnotemark
表格内部和\footnotetext{...}
之后\end{table}
\tablefootnote
随tablefootnote
包裹- 用包装包围
table
环境\begin{savenotes}
\begin{savenotes}
footnote
所有这些解决方案都产生了脚注标记和相应的文本,但是,没有一个解决方案将脚注的文本放在适当的页面上。
编辑:对于较小的表格(例如,只有我的 MWN 中的前 4 行),表格出现在脚注下方,这看起来更糟......
MWN\footnotemark
和\footnotetext{...}
\documentclass[12pt,a4paper,fleqn]{scrreprt}
\usepackage{booktabs}
\usepackage{amsmath}
\begin{document}
\chapter{A sample chapter}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
\begin{table}
\centering
\begin{tabular}{l l} \toprule
column 1 & column 2 \\ \midrule
main entry 1 & \\
\; sub & yes \\
\; sub2 & yes \\
\; sub3& (yes)\footnotemark \\
main entry 2 & \\
\; sub & yes \\
\; sub2 & no \\
\; sub3& (yes)\\
main entry 3 & \\
\; sub & yes \\
\; sub2 & yes \\
\; sub3& (yes)\\
\bottomrule
\end{tabular}
\caption{A table with a footnotemark}
\end{table}
\footnotetext{Some footnote}
\end{document}
MWN 具有\tablefootnote
:
\documentclass[12pt,a4paper,fleqn]{scrreprt}
\usepackage{booktabs}
\usepackage{tablefootnote}
\usepackage{amsmath}
\begin{document}
\chapter{A sample chapter}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
\begin{table}
\centering
\begin{tabular}{l l} \toprule
column 1 & column 2 \\ \midrule
main entry 1 & \\
\; sub & yes \\
\; sub2 & yes \\
\; sub3& (yes)\tablefootnote{Some footnote} \\
main entry 2 & \\
\; sub & yes \\
\; sub2 & no \\
\; sub3& (yes)\\
main entry 3 & \\
\; sub & yes \\
\; sub2 & yes \\
\; sub3& (yes)\\
\bottomrule
\end{tabular}
\caption{A table with a footnotemark}
\end{table}
\end{document}
MWN 与\begin{savenotes}
和\end{savenotes}
:
\documentclass[12pt,a4paper,fleqn]{scrreprt}
\usepackage{booktabs}
\usepackage{footnote}
\usepackage{amsmath}
\begin{document}
\chapter{A sample chapter}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,
\begin{savenotes}
\begin{table}
\centering
\begin{tabular}{l l} \toprule
column 1 & column 2 \\ \midrule
main entry 1 & \\
\; sub & yes \\
\; sub2 & yes \\
\; sub3& (yes)\footnote{Some footnote} \\
main entry 2 & \\
\; sub & yes \\
\; sub2 & no \\
\; sub3& (yes)\\
main entry 3 & \\
\; sub & yes \\
\; sub2 & yes \\
\; sub3& (yes)\\
\bottomrule
\end{tabular}
\caption{A table with a footnotemark}
\end{table}
\end{savenotes}
\end{document}
答案1
这个问题没有标准解决方案。浮动环境中的脚注通常属于浮动环境内。实现此目的的一些想法如下:
将表格内部内容括在
minipage
:\begin{table} \begin{minipage} \begin{tabular}{ll}\hrule A & B \\\hrule C\footnotemark & D\\\hrule \end{tabular} \footnotetext{This is a `C', you see?} \end{minipage} \caption{This is a table.} \end{table}
不要让桌子完全浮动,使用
\captionof
来自caption
包使用
threeparttable
包