尝试将 hang
选项footmisc
与bigfoot
包(稍后用于更多脚注寄存器)结合起来,我在脚注之间插入了一行奇怪的行。如果我注释掉行\usepackage{bigfoot}
,或省略hang
选项,脚注将使用正常的行间空间进行格式化,只是这种组合似乎效果不佳。示例:
\documentclass{memoir}
\usepackage[hang]{footmisc}
%\usepackage{footmisc}
\usepackage{bigfoot}
\begin{document}
Some text\footnote{A footnote.}\footnote{And one more.}
\end{document}
在没有额外垂直空间的情况下,如何才能使这种组合发挥作用?
答案1
这个组合中 \par 太多了
\documentclass{memoir}
\usepackage[hang]{footmisc}
%\usepackage{footmisc}
\makeatletter
\long\def\@makefntext#1{%
\ifFN@hangfoot
\bgroup
\setbox\@tempboxa\hbox{%
\ifdim\footnotemargin>0pt
\hb@xt@\footnotemargin{\@makefnmark\hss}%
\else
\@makefnmark
\fi
}%
\leftmargin\wd\@tempboxa
\rightmargin\z@
\linewidth \columnwidth
\advance \linewidth -\leftmargin
\parshape \@ne \leftmargin \linewidth
\footnotesize
\@setpar{{\@@par}}%
\leavevmode
\llap{\box\@tempboxa}%
\parskip\hangfootparskip\relax
\parindent\hangfootparindent\relax
\else
\parindent1em
\noindent
\ifdim\footnotemargin>\z@
\hb@xt@ \footnotemargin{\hss\@makefnmark}%
\else
\ifdim\footnotemargin=\z@
\llap{\@makefnmark}%
\else
\llap{\hb@xt@ -\footnotemargin{\@makefnmark\hss}}%
\fi
\fi
\fi
\footnotelayout#1%
\ifFN@hangfoot
%\par<-----
\egroup
\fi
}
\usepackage{bigfoot}
\begin{document}
Some text\footnote{A footnote.}\footnote{And one more}
\end{document}