脚注超出页面边缘

脚注超出页面边缘

使用长章节标题和para来自的选项时footmisc,脚注会被推到页面边缘。例如

\documentclass{article}
\usepackage{lipsum}
\usepackage[para]{footmisc}
\begin{document}
    \section{This is a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long section title.}
        This is some text.\footnote{\lipsum[1-6]}
        \lipsum
\end{document}

删除该para选项即可看到差异。如何防止脚注延伸到文本边界以下?

答案1

在 (La)TeX 中,脚注的段落排版比较棘手。第 9 节介绍了所面临的问题文档包的manyfoot。关于的算法footmisc,其para选项需要“弄乱输出程序”footmisc文档,第 12 页)。footmisc手册第 13 页指出:

我们用脚注段落做一个框,然后把框里的内容塞进即将输出的内容中\shipped

尽管我对 LaTeX 的输出程序不够熟悉,但我怀疑所提到的“框”根本无法跨页面拆分。

解决方案:替换footmiscbigfoot该包具有最先进的脚注算法。

\documentclass{article}
\usepackage{lipsum}
\usepackage{bigfoot}
\DeclareNewFootnote[para]{default}
\begin{document}
    \section{This is a very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long section title.}
        This\footnote{Yes,} is\footnote{it is} some\footnote{indeed.} text.\footnote{\lipsum[1-6]}
        \lipsum
\end{document}

在此处输入图片描述

相关内容