![我可以在 LaTeX 的小页面环境中获得普通脚注吗?怎样做?](https://linux22.com/image/231456/%E6%88%91%E5%8F%AF%E4%BB%A5%E5%9C%A8%20LaTeX%20%E7%9A%84%E5%B0%8F%E9%A1%B5%E9%9D%A2%E7%8E%AF%E5%A2%83%E4%B8%AD%E8%8E%B7%E5%BE%97%E6%99%AE%E9%80%9A%E8%84%9A%E6%B3%A8%E5%90%97%EF%BC%9F%E6%80%8E%E6%A0%B7%E5%81%9A%EF%BC%9F.png)
我需要使用 minipage 环境,并且需要在该 minipage 中添加脚注。我希望脚注按正常脚注顺序编号,并与文档中的其他脚注一起出现。但是,正如这个最小示例所示:
\documentclass{article}
\begin{document}
Spam
\begin{minipage}{.5\linewidth}
Foo\footnote{bar}
\end{minipage}
Ham
\end{document}
显而易见的是产生了一个脚注,该脚注 1)出现在小页面的底部,而不是页面本身,并且 2)按字母顺序“编号”。
如何在小页面中获取常规脚注?
答案1
您应该使用footnotemark
和footnotetext
命令来人为地插入标记和文本。
修改您的 MWE,我们有
\documentclass{article}
\begin{document}
Test\footnote{First footnote}
\begin{minipage}{.2\linewidth}
Test with a bit more text to show that it really is a minipage\footnotemark
Here is an internal footnote\footnote{Internal footnote}
\end{minipage}
\footnotetext{Second footnote}
Ham
\end{document}
产生
答案2
看起来,如果您使用 manyfoot 包,脚注就会显示在页面底部:
\documentclass{article}
\usepackage{manyfoot}
\usepackage{lipsum}
\DeclareNewFootnote{A}[arabic]
\DeclareNewFootnote{B}[alph]
\begin{document}
\subsection{Test section}
\begin{minipage}{0.8\textwidth}
This is text in a \texttt{minipage} environment. Here is the first \texttt{minipage} footnote\footnote{First minipage footnote.}. And another \texttt{minipage} footnote\footnote{Second minipage footnote.}.
Here\footnoteA{BOTTOM FOOT NOTE A} \footnoteB{BOTTOM FOOT NOTE B}
\end{minipage}
\\
\begin{minipage}{0.8\textwidth}
This is text in a \texttt{minipage} environment. Here is the first \texttt{minipage} footnote\footnote{First minipage footnote.}. And another \texttt{minipage} footnote\footnote{Second minipage footnote.}.
Here\footnoteA{BOTTOM FOOT NOTE C}
\end{minipage}
\vspace{10pt}
\end{document}