梅威瑟:
\documentclass{amsart}
\usepackage{footnotebackref}
\begin{document}
\begin{equation}\label{eq:1}
1=1\footnote{1}
\end{equation}
\ref{eq:1}
\end{document}
我怎样才能解决这个问题?
编辑:
\documentclass{amsart}
\usepackage{xpatch}
\usepackage{hyperref}
%\usepackage{cleveref} %I get wrong hyperlinks with and without cleveref
\usepackage{footnotebackref}
\makeatletter
\edef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}
\xpretocmd{\@adminfootnotes}{\let\@makefntext\BHFN@OldMakefntext}{}{}
\renewcommand\@makefntext[1]{%
\@ifundefined{@makefnmark}
{}
{%
\renewcommand\@makefnmark{%
\mbox{%
\textsuperscript{%
\normalfont
\hyperref[\BackrefFootnoteTag]{\@thefnmark}%
}%
}\,%
}%
\BHFN@OldMakefntext{#1}%
}%
}
\makeatother
\begin{document}
\footnote{Test1}
\begin{align}\label{eq:1}
1=1\protect\footnotemark
\end{align}
Test\footnotetext{\label{fn2}This is footnote} eq.~\ref{eq:1}
%\cref{fn2}
\end{document}
答案1
希望以下内容MWE
能够帮到您:
\documentclass{amsart}
\usepackage{xpatch}
\usepackage{hyperref}
\usepackage{footnotebackref}
\makeatletter
\edef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}
\xpretocmd{\@adminfootnotes}{\let\@makefntext\BHFN@OldMakefntext}{}{}
\renewcommand\@makefntext[1]{%
\@ifundefined{@makefnmark}
{}
{%
\renewcommand\@makefnmark{%
\mbox{%
\textsuperscript{%
\normalfont
\hyperref[\BackrefFootnoteTag]{\@thefnmark}%
}%
}\,%
}%
\BHFN@OldMakefntext{#1}%
}%
}
\makeatother
\begin{document}
\begin{align}\label{eq:1}
1=1\protect\footnotemark
\end{align}
\footnotetext{This is footnote}\ref{eq:1}
\end{document}
PS:想法借鉴自其中一篇egreg
文章......
输出
编辑
\documentclass{amsart}
\usepackage{xpatch}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{footnotebackref}
\makeatletter
\edef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}
\xpretocmd{\@adminfootnotes}{\let\@makefntext\BHFN@OldMakefntext}{}{}
\renewcommand\@makefntext[1]{%
\@ifundefined{@makefnmark}
{}
{%
\renewcommand\@makefnmark{%
\mbox{%
\textsuperscript{%
\normalfont
\hyperref[\BackrefFootnoteTag]{\@thefnmark}%
}%
}\,%
}%
\BHFN@OldMakefntext{#1}%
}%
}
\makeatother
\begin{document}
\begin{align}\label{eq:1}
1=1\protect\footnotemark
\end{align}
Test\footnotetext{\label{fn1}This is footnote} eq.~\ref{eq:1}
\cref{fn1}
\end{document}