I have a long footnote attached to a section title. It spans three paragraphs. Latex complains ! Paragraph ended before \M@sect was complete.
. What's the best way of doing this, if one has to do it at all? Use protect
before the footnote and manually break lines via \\
, but then I have no indentation of second and third paragraph?
\documentclass{memoir}
\begin{document}
\paragraph{I am a paragraph\footnote{This footnote has more than one paragraph.
This is the second paragraph.
This is the third paragraph}%end footnote
}%end paragraph
\end{document}
Edit:
Trying to follow barbara's suggestion I've done the following, which seems to produce the desired result in my real file, but in the MWE the numbering is off, so I'm worried I'm still missing something here:
\documentclass{memoir}
\begin{document}
\paragraph{I am a paragraph.\protect\footnotemark}
\footnotetext{This footnote has more than one paragraph.
This is the second paragraph.
This is the third paragraph.}
\end{document}
Best Answer
the "obvious" approach here is to separate this into
\footnotemark
and\footnotetext{...}
. unfortunately, with the example provided,memoir
delivers a footnote number one lower than it should be in the footnote itself. a reasonably detailed examination of thememoir
code for\paragraph
and footnotes failed to uncover the reason.but there's another straightforward way to handle this: keep the whole footnote within the
\paragraph
argument, but don't use blank lines to separate the paragraphs. instead, use\protect\endgraf
to indicate the divisions.here we illustrate both approaches.