Text Formattingfootmisc, footnotebackref, hyperref | Footnotes in Equations

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

footmisc, footnotebackref, hyperref | Footnotes in Equations

Post by svend_tveskaeg »

Hi all.

Consider the following MWE:

Code: Select all

\documentclass[danish]{article}

\usepackage{babel}
\usepackage{mathtools}
\usepackage{footnotebackref}
\usepackage[bottom,hang,stable,symbol]{footmisc}
\usepackage{hyperref}

\begin{document}

We have\footnotetext[2]{See \nameref{addendum}.}
\begin{equation}
  a \stackrel{\mathclap{\footnotemark[2]}}{=} b.
\end{equation}
Furthermore
\begin{equation}
  c \stackrel{\mathclap{\footnotemark[2]}}{=} d.
\end{equation}

\section*{Addendum}
\label{addendum}
Something.

\end{document}
I would like the two \dag symbols in the equations to link interactively to the footnote.

How do I do this?

Thank you in advance!
Last edited by svend_tveskaeg on Mon Aug 13, 2012 3:31 am, edited 4 times in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

footmisc, footnotebackref, hyperref | Footnotes in Equations

Post by Stefan Kottwitz »

Hi,

are you really sure it's worth the effort? Do you expect users to click there?

hyperref doesn't support \footnotemark with optional argument, due to technical issues. You could make a workaround without the optional argument. The hyperref README file shows ways and examples. Just use your PDF reader search feature and let it search for the word "nasty" - the only match is the solution. ;)

Stefan
LaTeX.org admin
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: footmisc, footnotebackref, hyperref | Footnotes in Equat

Post by svend_tveskaeg »

It is for myself.

I have found the example (on pages 27--28), but I cannot get mine to work when I tried to modify my example in the same way. :(

Any chance that I can get you to modify my MWE in order to make it work? (I do not mind it being a number instead of a \dag.)

Thank you in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: footmisc, footnotebackref, hyperref | Footnotes in Equat

Post by Stefan Kottwitz »

I will have a look, perhaps not today, as I'm currently travelling, but tomorrow evening may be possible.

Stefan
LaTeX.org admin
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: footmisc, footnotebackref, hyperref | Footnotes in Equat

Post by svend_tveskaeg »

Thank you very much!

P.S. Have a nice trip.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

footmisc, footnotebackref, hyperref | Footnotes in Equations

Post by Stefan Kottwitz »

The combination of a nasty workaround with hyperref to use an unsupported footnote feature, together with the footmisc package and footnote backreferencing, that's a bit too much, I guess. For example it's unclear where a back reference should point to, if there are several references.

I did not test the second suggestion from the hyperref README, just the first one. It works with hyperlinks to the daggers, if footnotebackref is not loaded:

Code: Select all

\documentclass[danish]{article}

\usepackage{babel}
\usepackage{mathtools}
%\usepackage{footnotebackref}
\usepackage[bottom,hang,stable,symbol]{footmisc}
\usepackage{hyperref}

\begin{document}
\stepcounter{footnote}% to start with the dagger
We have\footnote{See \nameref{addendum}.}
\addtocounter{footnote}{-3}%
\addtocounter{Hfootnote}{-3}%
\begin{equation}
  a \stackrel{\mathclap{\footnotemark}}{=} b.
\end{equation}
Furthermore
\addtocounter{footnote}{-4}%
\addtocounter{Hfootnote}{-4}%
\begin{equation}
  c \stackrel{\mathclap{\footnotemark}}{=} d.
\end{equation}

\section*{Addendum}
\label{addendum}
Something.

\end{document}
With footnotebackref, the hyperlinks get lost.

Stefan
LaTeX.org admin
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: footmisc, footnotebackref, hyperref | Footnotes in Equat

Post by svend_tveskaeg »

Spot on!

Thank you very much.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply