Hyperlinks generated with \ref{note}
link to the beginning of the pagenote section rather than to the actual note, the way a \ref
to a \footnote
works. The hyperlink generated by \pagenote
itself works fine. Is that a known problem? Is there a workaround?
\documentclass{memoir}
\usepackage{hyperref,blindtext}
\begin{document}
\makepagenote
Hyperlink to \ref{note3} goes to beginning of notes section instead of to note \ref{note3}.
\blindtext\pagenote{\label{note1}\blindtext\par\blindtext}
\blindtext\pagenote{\label{note2}\blindtext\par\blindtext}
\blindtext\pagenote{\label{note3}\blindtext}
\printpagenotes
\end{document}
EDIT: Someone posted this answer but it's now gone, so I'll record it here: the workaround is to insert \phantomsection
before the \label
command.
\notebackref
in the preamble, the\pagenote
generates labels automatically such aspagenote1-1
etc, but it is difficult to remember this