[Tex/LaTex] Make footnote clickable both ways

cross-referencingfootnoteshyperrefkoma-script

Using the hyperref package, footnotes become clickable and lead to the bottom of the page where the footnote is printed. However, clicking on the footnote's number does not bring the reader back to where the note was referenced in the text.

I'm surprised this is not so since I often find myself reading over the little reference number itself and only noticing at the bottom of the page that there was a footnote somewhere in the text. Then I have to go to the nuisance of skipping through the text again to find it. A simple click on the footnote to make the viewer jump to the line of reference would be really convenient in such instances.

Is there a package (option) for this or could this be implemented by hand?


Update: Ulrike Fischer suggested the footnotebackref package which fulfills exactly this purpose. Unfortunately, it seems to be incompatible with the KOMA-Script classes. A useful solution should really be compatible with KOMA-Script.

Best Answer

Here is a suggestion using a KOMA-Script class together with package footnotebackref:

\documentclass{scrartcl}

\usepackage{footnotebackref}

\deffootnote{1.5em}{1em}{%
  \textsuperscript{\hyperref[\BackrefFootnoteTag]{\thefootnotemark}}\,%
}

\usepackage{blindtext}% dummy text
\begin{document}
Something here\footnote{foo}
\blindtext[2]
And another footnote is here\footnote{foobar}
\end{document}

enter image description here

\deffootnote is a KOMA-Script command und \BackrefFootnoteTag is defined by package footnotebackref.


Syntax of \deffootnote:

\deffootnote[<mark width>]{<indent>}{<parindent>}{<definition>}

If the optional argument is missing <indent> will be used as <mark width>. <parindent> is an additional indent if a new paragraph starts inside a footnote.

The defaults for the KOMA-Script classes are

\deffootnote[1em]{1.5em}{1em}
  {\textsuperscript{\thefootnotemark}}
Related Question