I am using footnotebackref
to have links and back links between footnote marks and footnote texts. But the example below produces this error:
! Undefined control sequence.
<argument> \BackrefFootnoteTag
l.5 \footnotetext{My note.}
My sample document is:
\documentclass{book}
\usepackage{footnotebackref}
\begin{document}
Some text\footnotemark.
\footnotetext{My note.}
\end{document}
Note:
The following code runs without error (but second back link is linked to first note).
\documentclass{book}
\usepackage{footnotebackref}
\begin{document}
Prenote\footnote{First note}.
\newpage
Some text\footnotemark.
\footnotetext{My note.}
\end{document}
\BackrefFootnoteTag
gets only defined inside a\footnote
. This explains why your second code without error. If you just add\edef\BackrefFootnoteTag{bhfn:\theBackrefHyperFootnoteCounter}
to the preamble, your first code runs without error. But the back reference from the footnote does not work. Perhaps this is an issue that only the package author can resolve?