1

I want to place several footnotes inside a mdframed environment like this

\documentclass{article}
\usepackage{mdframed}

\begin{document}

First\footnote{first footnote}

\begin{mdframed}
Second\footnotemark
\footnotetext{Second footnote}
Third\footnotemark
\footnotetext{Third footnote}
\end{mdframed}

\end{document}

But the footnote numbers are not shown enter image description here

If I bring the \footnotetexts outside of mdframed, the numbers would be shown at the end of the page. But of course, this would prevent me from having multiple footnotes inside the box. enter image description here

2
  • What about \documentclass{article} \usepackage{mdframed} \begin{document} First\footnote{first footnote} \begin{mdframed} First local\footnote{First local footnote} Second local\footnote{First local footnote} \end{mdframed} Second\footnote{second footnote} \end{document}? With this code, you should get footnotes inside of the mdframed box that are labelled using letters insted of numbers in order to distinguish them from regular footnotes.
    – leandriis
    Commented May 30, 2021 at 8:52
  • I prefer the footnotes to use the global counter though. Commented May 30, 2021 at 9:07

1 Answer 1

0

Adding this to the preamble seems to do the trick

\let\thempfootnote\thefootnote

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .