I want to refer to an existing footnote and I'm not happy with the workaround given here: http://anthony.liekens.net/index.php/LaTeX/MultipleFootnoteReferences
I found that I can put a \label inside a footnote and then get the footnote-number by a \ref to this label.
I'm not sure what would be the best way to reference to a footnote, but I would have formatted it like a normal footnote number (superscript). I tried to write \footnotemark[\ref{LabelName}], but that produces an error.
Can anybody help?
Is there any reason why I should not do it like that? (any risk of failure?)
\documentclass[11pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
First footnote\footnote{\label{Firstfootnote}My first footnote}
Second footnote\footnote{Second Footnote}
Third footnote where I want to refer to first footnote\footnote{I now want to refer to the first footnote by \ref{Firstfootnote}, but I'd like to format it like \footnotemark[1], but footnotemark[ref{Firstfootnote}] produces an error}
\end{document}
--
(my) solution:
add
\usepackage{refcount}
and use \footnotemark[\getrefnumber{Firstfootnote}]
now I'll try to produce the error: \footnotemark{\ref{Firstfootnote}}and I get a strange result in the PDF with first a "4" (in superscript like a foonote and then the "1" (normal size)). For your reference: I've just usedpdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)which might be quite outdated. – MostlyHarmless May 09 '14 at 20:07refcountpackage, there is the following error: **./Footnotemark_2014.tex:17: Missing number, treated as zero.% \usepackage{refcount}
\usepackage[T1]{fontenc}
\begin{document}
First footnote\footnote{\label{Firstfootnote}My first footnote}
Second footnote\footnote{Second Footnote}
Third footnote where I want to refer to first footnote\footnote{I now want to refer to the first footnote by \ref{Firstfootnote}, but I'd like to format it like \footnotemark[\getrefnumber{Firstfootnote}]}
\end{document}
– MostlyHarmless May 10 '14 at 07:04