![Várias notas de rodapé em equações em stackrel/overset com hyperref](https://rvso.com/image/281464/V%C3%A1rias%20notas%20de%20rodap%C3%A9%20em%20equa%C3%A7%C3%B5es%20em%20stackrel%2Foverset%20com%20hyperref.png)
Estou tentando colocar mais de uma nota de rodapé sobre o sinal de igualdade no ambiente align*. Com uma pegada, é fácil:
\begin{align*}
x\overset{\footnotemark}{=}y
\end{align*}
\footnotetext{Comment1}
Isso é bom. Então, pensei que quando eu adicionasse mais notas de rodapé, o latex me entenderia automaticamente:
\begin{align*}
x\overset{\footnotemark}{=}y\overset{\footnotemark}{=}z
\end{align*}
\footnotetext{Comment1}
\footnotetext{Comment2}
Mas isso não aconteceu, é claro. Depois de um tempo eu modifiquei:
\begin{align*}
x\overset{\footnotemark[1]}{=}y\overset{\footnotemark[2]}{=}z
\end{align*}
\footnotetext[1]{Comment1}
\footnotetext[2]{Comment2}
E funcionou! Mais ou menos... Primeiro de tudo, estou usando o hyperref e essas notas de rodapé não estão vinculadas. Em segundo lugar, quando tento criar uma nova nota de rodapé:
\begin{align*}
x\overset{\footnotemark[1]}{=}y\overset{\footnotemark[2]}{=}z
\end{align*}
\footnotetext[1]{Comment1}
\footnotetext[2]{Comment2}
And now for something completely different\footnote{Python, M.}.
estragou a numeração.
Além disso, inserir notas de rodapé manualmente não as imprime:
\begin{align*}
x\overset{\footnote{Comment1}}{=}y\overset{\footnote{Comment2}}{=}z
\end{align*}
(os links estão, mas não há notas de rodapé).
Existe alguma maneira legal de fazer o que eu quero?
Responder1
Se os links hyperref não forem necessários, então este uso stackengine
será suficiente:
\documentclass{article}
\usepackage{stackengine}
\usepackage{hyperref}
\textheight 1.5in
\stackMath
\begin{document}
\[
y \stackon[1.5pt]{=}{\setstackgap{S}{0.5pt}%
\Shortstack{\footnotemark[1] \footnotemark[2] \footnotemark[3]}} x
\footnotetext[1]{Comment 1}
\footnotetext[2]{Comment 2}
\footnotetext[3]{Comment 3}
\]
\end{document}
No que diz respeito a um link hyperref, posso obter o seguinte código para compilar:
\documentclass{article}
\usepackage[usestackEOL]{stackengine}
\usepackage{hyperref}
\textheight 1.5in
\stackMath
\begin{document}
\[
y \stackon[1.5pt]{=}{\Shortstack{\footnote{Comment 1}\\\footnote{Comment 2}}} x
\]
\end{document}
e embora os hiperlinks apareçam acima do sinal de igual, eles estão numerados incorretamente e não apontam para nenhum texto significativo na parte inferior da página.