I want to call footnotes in (self-explanatory) equations, so I use \footnotemark and \footnotetext, but the footnote numbering is going wrong. Numbers skip from 1 to 3 (when I'd want a 2), and when I try to addtocounter footnote -1, it doesn't skip anymore, and doesn't increment at all.
Why is that so, and how to get consecutive numbers ?
MWE :
\documentclass[12pt]{report}
\usepackage{amsmath}
\begin{document}
$1^{st}$ footnote call\footnote{some footnote}.
\[a \xrightarrow{2^{nd}\footnotemark} a\]
\footnotetext{$\leftarrow$ this should be footnote 2}
\[a \xrightarrow{3^{rd}\footnotemark} a\]
\footnotetext{$\leftarrow$ this should be footnote 3}
\[a \xrightarrow{4^{th}\addtocounter{footnote}{-1}\footnotemark} a\]
\footnotetext{$\leftarrow$ following the pattern, I'd expect this to be 7 without fix, 6 once fixed. But 5??}
\end{document}
