cryptocode icon indicating copy to clipboard operation
cryptocode copied to clipboard

Footnotes inside `procedure` are displayed multiple times

Open quapka opened this issue 9 months ago • 1 comments

The following example:

\documentclass{article}
\usepackage{cryptocode}

\begin{document}
\procedure{}{
    \footnote{Foot note text.}
}
\end{document}

gets compiled to

Image

While it can be questionable, whether to use footnotes inside \procedures (at least I do) it should behave as expected and not double the output. The other environments that I have tested were \pseudocode and \pseudocodeblock, which both showed a single footnote at the bottom of the page.

quapka avatar Mar 21 '25 16:03 quapka

While reporting #27 I've noticed that pcvstack actually makes the footnote render four times.

\documentclass{article}
\usepackage{cryptocode}

\begin{document}
\begin{pcvstack}
    \procedure{}{
        a\footnote{foot note text.}
    }
\end{pcvstack}
\end{document}

yields:

Image

Notice also the two types of horizontal alignment.

quapka avatar Mar 21 '25 16:03 quapka