仅将脚注分组到一页上的列中

仅将脚注分组到一页上的列中

TL;DR。我想将某些脚注(但不是全部)设置为双栏格式。我不介意半手动管理(例如确保一页上只显示一种类型的注释)。

我有一份很长的文档,在其中一个部分,我有一整串非常短的脚注(目前有 12 个;它们是短 URL),它们大部分都位于同一页上。这显然会在页面上留下一个非常高且看起来奇怪的页脚。我希望将脚注分组到仅针对此页面/区域的列中(因为我在其他地方有长脚注,需要占据整个宽度)。

我能找到的所有相关问题都与为整个文档设置列脚注有关(例如将 LaTeX 脚注拆分为两列,,dblfnote等等),或者处理双栏文档中的脚注,但这不是我想要的。

我最终想出了以下尝试,即使用manyfoot“段落”格式设置某些注释,然后将它们放在框中,使其看起来像列一样,这很接近。我尝试\hangindent将第二行注释与第一行对齐,但这只适用于单数或双数脚注(宽度不同),但不能同时适用于两者。这似乎也不是这个问题的“正确”解决方案。

\documentclass{article}

\usepackage[para]{manyfoot}

% Set up a footnote style which runs all footnotes together in one paragraph.
\SetFootnoteHook{\hangindent=1.1em} % Amount chosen to match double-digit footnotes
\newfootnote[para]{X}
\newcommand{\footnoteXX}{\stepcounter{footnote}\Footnotemark\thefootnote \FootnotetextX{\thefootnote}}
\newcommand{\footnoteX}[1]{\footnoteXX{\makebox[0.4\textwidth][l]{#1}}}

\begin{document}

\setcounter{footnote}{5} % Simulate being part-way through the document.

Hello,\footnoteX{AAA} I\footnoteX{BBB} have lots\footnoteX{CCC} of footnotes\footnoteX{DDD} to mention\footnoteX{EEE} on\footnoteX{FFF} a\footnoteX{GGG} single\footnoteX{HHH} page\footnoteX{III}.

\end{document}

这个答案列中的简短脚注使用相同的方法,更巧妙地计算盒子宽度,但问题相同。


替代尝试: 在 MWE 中,这个答案给出了我想要的输出。但是,当我添加reledmac到实际文档时,我遇到了一些冲突(我可以修复),而且它似乎还影响了脚注标记周围的其他间距(也许还有其他东西?)。我对这种难以发现的“小”变化感到偏执,所以我放弃了这个解决方案,转而选择一种不影响文档其余部分的解决方案(如果可能的话)。

\documentclass{article}
\usepackage{reledmac}
\arrangementX[A]{twocol}
\begin{document}
This is\footnoteA{Left side footnote} a dummy text. Let us find out\footnoteA{Second left side footnote} if it worked well \footnoteA{Right side footnote} or not\footnoteA{Second right side footnote}.
\end{document}

答案1

此解决方案也放入\fnmark一个恒定宽度框。它使用的宽度为\footnotemark[22](8.47pt)。

\documentclass{article}

\usepackage[para]{manyfoot}

% Set up a footnote style which runs all footnotes together in one paragraph.
%\SetFootnoteHook{\hangindent=\parindent}% constant indentation for every line
\SetFootnoteHook{\parindent=0pt}
\newfootnote[para]{X}
\newcommand{\footnoteXX}{\stepcounter{footnote}\Footnotemark\thefootnote \FootnotetextX{\makebox[8.5pt][r]{\thefootnote}}}
\newcommand{\footnoteX}[1]{\footnoteXX{\makebox[0.4\textwidth][l]{#1}}}

\begin{document}

\setcounter{footnote}{5} % Simulate being part-way through the document.

Hello,\footnoteX{AAA} I\footnoteX{BBB} have lots\footnoteX{CCC} of footnotes\footnoteX{DDD} to mention\footnoteX{EEE} on\footnoteX{FFF} a\footnoteX{GGG} single\footnoteX{HHH} page\footnoteX{III}.

\end{document}

演示

相关内容