我使用\footmisc
来设置脚注的样式,并使用选项hang
(与 结合使用raged2e
)。我想为多段注释中的第二段和后续段落设置缩进,但无法工作\hangfootparindent
。段落内的新行和新段落都根据值缩进\RaggedRightParindent
。我希望新段落缩进,段落内的新行缩进不是缩进;但缩进新的段落更为重要。
编辑:如@touhami 的解决方案所示,这与选项有关ragged
。删除该选项可使缩进正常工作,但脚注会设置为两端对齐,这是我不想要的。
似乎我错过了一些简单而明显的东西,但我无论如何也无法弄清楚!
这是我的 MWE:
\documentclass[12pt,article,oneside]{memoir}
\usepackage{ragged2e}
\setlength{\RaggedRightParindent}{1em}
\usepackage[ragged,hang,norule,splitrule,bottom]{footmisc}
\renewcommand\hangfootparindent{5em}
\renewcommand\hangfootparskip{0\baselineskip}
\begin{document}
\noindent
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
placerat justo ac orci iaculis, ut dictum velit blandit. Suspendisse
potenti.\footnote{Multiple paragraphs! Graf 1 Line 1\\In-paragraph line break. Graf 1 Line 2
Totally new graf. Graf 2 Line 1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
placerat justo ac orci iaculis, ut dictum velit blandit. Suspendisse
potenti.\
\end{document}
无论我给出什么值\renewcommand\hangfootparindent
(5em,.5em等),它看起来总是相同的:
非常感谢您的帮助!
答案1
如果您知道您将使用ragged2e
,以及的hang
和选项,那么您可以这样做:ragged
footmisc
\documentclass[12pt,article,oneside]{memoir}
\usepackage{lipsum}
\usepackage{ragged2e}
\setlength{\RaggedRightParindent}{1em}
\usepackage[ragged, hang, norule,splitrule,bottom]{footmisc}
\renewcommand\hangfootparskip{0\baselineskip}
\renewcommand\hangfootparindent{5em}
\makeatletter
\ifFN@para
\else
\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 % <-- orig; \bgroup to \egroup added
\bgroup
\setlength\RaggedRightParindent{5em}%
\RaggedRight
#1
\egroup
\ifFN@hangfoot
\par\egroup
\fi
}
\fi
\makeatother
\begin{document}
\noindent
\lipsum*[1]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
placerat justo ac orci iaculis, ut dictum velit blandit. Suspendisse
potenti.\footnote{Multiple paragraphs! Graf 1 Line 1\\In-paragraph line break. Graf 1 Line 2 \lipsum*[1]
Totally new graf. Graf 2 Line 1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
placerat justo ac orci iaculis, ut dictum velit blandit. Suspendisse
potenti.\
\end{document}
如果您想要修补,则需要做更多的工作,footmisc
以便无论您是否加载它都能做“正确的事情” ragged2e
。
答案2
\documentclass[12pt,article,oneside]{memoir}
\usepackage{ragged2e}
\setlength{\RaggedRightParindent}{1em}
\usepackage[hang,norule,splitrule,bottom]{footmisc}
\renewcommand\hangfootparindent{1em}
\renewcommand\hangfootparskip{0\baselineskip}
\begin{document}
\noindent
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
placerat justo ac orci iaculis, ut dictum velit blandit. Suspendisse
potenti.\footnote{\indent Multiple paragraphs! Graf 1 Line 1\\In-paragraph line break. Graf 1 Line 2
Totally new graf. Graf 2 Line 1}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas
placerat justo ac orci iaculis, ut dictum velit blandit. Suspendisse
potenti.\
\end{document}