# Extra space after equation with footnote

So I need a footnote after an equation and I found this solution:

\documentclass{scrreprt}
\usepackage{mathtools}
\newtagform{fn}{(}{)\footnotemark}

\begin{document}
\section{Example 1}
\usetagform{fn}
$$E=mc^2$$\footnotetext{Footnote}
\usetagform{default}
\section{Example 2}
\end{document}


However this adds extra spacing after the equation as shown in the picture below. How can I avoid this?

• As a matter of principle, footnotes should be used for material of minor importance and/or auxiliary nature. If you need to provide explanations to the equations, these explanations in all likelihood be placed in the body of the text, not inside footnotes.
– Mico
Feb 4 '18 at 15:12

You can put the \footnotetext in a safer place, and avoid white space around the \usetagform

\documentclass{scrreprt}
\usepackage{mathtools}
\newtagform{fn}{(}{)\footnotemark}

\begin{document}
\section{Example 1}
\usetagform{fn}
$$E=mc^2\footnotetext{Footnote}$$%
\usetagform{default}%
\section{Example 2}
\end{document}

• What do the two percentage signs change? Feb 4 '18 at 15:17
• This solution does remove the whitspace though the number of the footnote in the footer is zero and in the text one. Feb 4 '18 at 15:21
• @djedefre that would be wrong then:-) I'll fix, look again in a bit Feb 4 '18 at 15:26
• @djedefre fixed, note that the dance with adding and subtracting 1 to the footnote counter is only needed as you have no actual text in this document, just equations and section headings so the only "safe" place to use \footnotetext is in the equation, but then it is before the equation number so gets the wrong footnote number without some help. Feb 4 '18 at 15:33
• @djedefre on % see tex.stackexchange.com/questions/7453/… Feb 4 '18 at 15:34