latex2e icon indicating copy to clipboard operation
latex2e copied to clipboard

latex-lab-footnotes: \footnote should be long

Open schlcht opened this issue 2 years ago • 3 comments

Brief outline of the bug

In latex-lab-footnotes, \footnote (and \footnotetext) should be \long.

Minimal example showing the bug

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}
\makeatletter
\input latex-lab-footnotes.ltx
\begin{document}
A\footnote{B\par C}\footnotetext{D\par E}
\end{document}

Log file (required) and possibly PDF file

test.log

--

All is fine with \DeclareDocumentCommand\footnote {o+m} {\ETC.

PS: Where is the argument spec + (and possibly others) actually documented? I've been looking through xparse.pdf and source2e, but had to resort to (gasp!) google to find out about it.

schlcht avatar Jun 19 '22 00:06 schlcht

Regarding your PS: xparse.pdf page 3:

First, + is used to make an argument long (to accept paragraph tokens). In contrast to LaTeX2e’s \newcommand, this applies on an argument-by-argument basis. So modifying the example to ‘s o o +m O{default}’ means that the mandatory argument is now \long, whereas the optional arguments are not.

Skillmon avatar Jun 19 '22 15:06 Skillmon

Regarding your PS: xparse.pdf page 3:

Ah yes, thanks, I was suspecting some sort of blindness on my part.

schlcht avatar Jun 19 '22 20:06 schlcht

``

PS: Where is the argument spec + (and possibly others) actually documented? I've been looking through xparse.pdf and source2e, but had to resort to (gasp!) google to find out about it.

xparse and usrguide3.pdf (which is the usrguide after 2020 --- at some time we want to combine that again with the relvant parts from the old usrguide but ...)

FrankMittelbach avatar Jun 19 '22 20:06 FrankMittelbach