脚注覆盖底部居中的页码

脚注覆盖底部居中的页码

我正在使用 etoolbox 包将双倍行距文档中的脚注间距设置为单倍行距。但是,如果一页上有很多脚注,它们会覆盖页码。如何才能让我的脚注遵守正常的底部边距,就像没有脚注的页面一样?

在此处输入图片描述

\documentclass[preprint,nofootinbib]{revtex4-2}
\usepackage{setspace} 
\footnotesep=10pt
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@footnotetext}
{\setspace@singlespace}{0.8}
{}{}
\makeatother
\usepackage{lipsum}
\begin{document}
\title{Exciting Title about Interesting Subject}
\author{Fantastic Author}
\affiliation{Magnificent Affiliation}
\date{\today}
\begin{abstract}
\lipsum[1]
\end{abstract}
\maketitle
\pagenumbering{gobble}
\newpage
\raggedbottom
\pagenumbering{arabic}  
\setcounter{page}{1}

\lipsum[1]\footnote{This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.}

\lipsum[1]\footnote{This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.    This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number}

\lipsum[1-5]

\end{document}

答案1

在序言中尝试一下

\let\oldfootnote\footnote
\renewcommand{\footnote}[1]{%
    \begingroup%
    \linespread{1}%    % <- linespread for footnote: 1, 1.1, 1.2 etc
    \oldfootnote{#1}%
    \endgroup%
}

如果你希望脚注不转到其他页面,你可以设置:

\interfootnotelinepenalty=10000

答案2

一位同事传授了这个解决方案:在 \begin{document} 后立即添加 \count\footins = 1000。我不知道它的作用或工作原理,但显然它发挥了所需的魔力。

https://tex.stackexchange.com/a/453708/218690

相关内容