1

hyperref links to the wrong page for footnotes generated by manyfoot.

\documentclass{article}
\usepackage{manyfoot}
\usepackage{hyperref}
\DeclareNewFootnote{C}
\begin{document}
 \tableofcontents
 \clearpage
 \section{Introduction}
 \clearpage
 \section{Background}
 Default citation \footnoteC{Links to page 1 instead of current page}
\end{document}

When the above code is compiled using pdflatex, the footnotemark is always hyperlinked (in PDF) to "Page 1", instead of the page where the footnotetext appears.

Sunthar
  • 141
  • 4

1 Answers1

1

This code leads to a warning

pdfTeX warning (dest): name{Hfootnote.1} has been referenced but does not exist, replaced by a fixed one

and solved in a related issue by Ulrike Fischer

The same solution of defining a destination works for this as well. Hopefully, this will be fixed in the future releases of manyfoot.

\usepackage{etoolbox}
\makeatletter
\newcommand\manyfoottarget{\makebox[0pt][r]{\hypertarget{Hfootnote.\theHfootnote
}\quad}}
\patchcmd\MFL@fnoteplain{\rule}{\manyfoottarget\rule}{}{\fail}
\makeatother
Sunthar
  • 141
  • 4