[Tex/LaTex] How to get hyperlinks for footnote when someone uses \footnotemark[] and \footnotetext[]{}

footnoteshyperref

I don't get any hyperlinks when I use \footnotemark[1] and \footnotetext[1]{my text}, but I do get hyperlinks when I only use \footnote{my text}. I don't want to use \footnote{} as it reduces the readability of the .tex file.

I am using hyperref package. Is there any extra package that I need to load?

I have seen many questions closely related to this question but those were asked long before. Is there any update? Or, is there any new packages to get the hyperlink?

Here is a minimal example where the hyperlinks are not active:

\documentclass{article}
\usepackage[a6paper]{geometry}% Just for this example
\usepackage{hyperref}
\begin{document}
\makeatletter
Here\footnotemark[1] is some text.
\footnotetext[1]{This is a more convenient place to code the footnote text.}
\end{document}

Best Answer

Separation of mark and text of footnotes with hyperref support is available through the sepfootnotes package. It requires you to use \sepfootnotecontent{<key>}{...} before \sepfootnote{<key>}, though:

\documentclass{article}
\usepackage[a6paper]{geometry}% Just for this example
\usepackage{sepfootnotes}

\usepackage{hyperref}

\begin{document}

\sepfootnotecontent{A}{This is a more convenient place to
  code the footnote text.}

Here\sepfootnote{A} is some text.

\end{document}
Related Question