我有一篇很长的文本,里面有很多很短的脚注。很多页面的底部都有大量的空白。我怎样才能让脚注写到同一行然后换行?我现在有的这个脚注代码可以强制脚注遵守底部边距。其他的都可以。我试过了这但它对我来说不起作用。
\documentclass[preprint,nofootinbib]{revtex4-2}
\usepackage{lipsum}
\usepackage{etoolbox}
\footnotesep=2pt
\makeatletter
\patchcmd{\@footnotetext}
{\setspace@singlespace}{0.1}
{}{}
\makeatother
\begin{document}
\count\footins = 1000
Words\footnote{Short footnote.} words words words\footnote{Short footnote.} words\footnote{Short footnote.} words words words words words words words words\footnote{Short footnote.} words words\footnote{Short footnote.} words\footnote{Short footnote.} words words words words\footnote{Short footnote.} words words words words words.\footnote{Short footnote.} Words\footnote{Short footnote.} words words words\footnote{Short footnote.} words\footnote{Short footnote.} words words words words words words words words\footnote{Short footnote.} words words\footnote{Short footnote.} words\footnote{Short footnote.} words words words words\footnote{Short footnote.} words words words words words.\footnote{Short footnote.}
\end{document}
以上是复制屏幕截图的代码。我的标题中实际上还有很多其他内容。为了防止其中一些内容可能会干扰提议的解决方案,我还附上了上面我编辑掉的完整标题:
\documentclass[preprint,nofootinbib]{revtex4-2}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{setspace}
\usepackage{textcomp}
\usepackage{varwidth}
\usepackage{titletoc}
\usepackage{titlesec}
\usepackage{etoolbox}
\usepackage[skins,breakable]{tcolorbox}
%%% FOOTNOTES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\footnotesep=11pt
\makeatletter
\patchcmd{\@footnotetext}
{\setspace@singlespace}{0.1}
{}{}
\makeatother
%%% ADD HYPERREF AFTER FOOTNOTES: FORMAT PROBLEM %%%%%%%%%%%
\usepackage[hidelinks]{hyperref}
%%% DEFINE SECTION TITLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titleformat{\section}[block]{\large\bfseries\filcenter}{\S \thesection.}{.1em}{}
%%% DEFINE BOX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newsavebox{\myboxbox}
\NewDocumentEnvironment{mybox}{+b}
{\centering
\setlength{\parindent}{0pt}%
% measure the text width
\sbox{\myboxbox}{\begin{varwidth}{\dimexpr\columnwidth-24mm}#1\end{varwidth}}\vspace*{0.9em}
\begin{tcolorbox}[
breakable,
colback=cyan!5,
width=\dimexpr\wd\myboxbox+8mm,
top=1mm,
bottom=3mm,
%enhanced,
pad at break=2mm
]
\begin{singlespace}
#1
\end{singlespace}
\end{tcolorbox} \vspace*{0.3em}
}{}
%%% DEFINE HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{\textsc{MAGNIFICENT TITLE}}
\fancyhead[RE,LO]{\textsc{AWESOME NAME}}
\fancyfoot[CE,CO]{\thepage}
\begin{document}
%%% MAKE FOOTNOTES RESPECT BOTTOM MARGIN %%%%%%%%%%%%%%%%%%%
\count\footins = 1000