多行脚注的布局

多行脚注的布局

我对 LaTeX 脚注有疑问:

我希望多行脚注看起来像:

1 This is the first line of the very, very long footnote
     and this is the second line of the very long footnote
     and this is the third line of the very long footnote.

我该如何实现这一点?我已经检查了 footmisc 包,但找不到可用的选项。

答案1

使用序言中的以下代码,可以使用正常\footnote命令:

\makeatletter
\renewcommand\@makefntext[1]{\leftskip=2em\hskip-2em\@makefnmark#1}
\makeatother

脚注编号将与左边距齐平。

答案2

使用scrextend包(它是KOMA-script) 及其\deffootnote宏。有关详细信息,请参阅手册第 3.14 节KOMA-script。(您也可以使用其中一个KOMA-script类来代替scrextend。)

\documentclass{article}

\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{scrextend}
\deffootnote[1em]{1.5em}{1em}{\textsuperscript{\thefootnotemark}}

\begin{document}

\blindtext\footnote{\blindtext}

\end{document}

答案3

这是一个更好的解决方案,使用hangingfootmisc

\documentclass[12pt]{article}

\usepackage[paperheight=8cm]{geometry}
% just to reduce sample size

\usepackage{hanging}
% provides the \hangpara command

\usepackage[flushmargin]{footmisc}
% sets the footnote mark just left of the left margin border

\renewcommand{\footnotemargin}{1em}
% changes the above and sets the footnote mark just right of the left margin border.

\newcommand{\fn}[1]{\footnote{\hangpara{3em}{1} #1}}
% makes a new footnote command \fn{} with a hanging indent of 3em (hanging indent starts after the first line)

\begin{document}

Hello\fn{This is the first line of the very, very, very, very, very, very, very, very, very, very long footnote
and this is the second line of the very, very, very, very, very, very, very, very long footnote
and this is the third line of the very long footnote.} 
World\fn{This is the first line of the very, very, very, very, very, very, very, very, very, very long footnote
and this is the second line of the very, very, very, very, very, very, very, very long footnote
and this is the third line of the very long footnote.}.

\end{document}

结果截图

关于\footnotemargin:此设置适用于一位和两位脚注标记。如果您只有一位标记,{0.5em}可能会更好;如果您有三位数脚注标记,您可能需要将此值更改为{1.5em},否则第一位数字将粘在左边距中。

有关详细信息,请参阅文档hangingfootmisc

答案4

您可以使用 parbox 强制多行脚注的布局,如下所示:

\footnote{ \parbox [t] {\linewidth} {a footnote with a linebreak\\
will use the overall parindent settings of the document. 
If the footnote is too long the line will just wrap like in normal paragraph mode.
The t parameter makes sure the footnote mark is placed relative to the first line } }

相关内容