# Re: \label in \footnote(s) in LaTeX

Dave Walden wrote:
Hi,

Can someone point me a the spec for the scope of a \label declaration
in a \footnote{}. Sometimes this works for me and sometimes it
doesn't. Let's say I have
\footnote{\label{fnfoo} text}
and I later refer to it via $^{\ref{fnfoo}}$ in the text, i.e., I want
to refer to the same footnote number again. This works when the \ref
is in the main text but not when it is in another footnote. On the
other hand, if I turn the footnotes into endnotes, then the \ref in
the endnote works. I can get the equivalent of the \ref in the later
footnote to work by doing the following in the first footnote:
\label{fnfoo} text}\gdef\fnzoo{\ref{fnfoo}}
and then later using $^{\fnzoo}$ in the second footnote, assuming the
footnotes have been defined in the right order. Is there some more
"official" way for doing what I want to do?

Best regards, Dave

well, it might help if you would provide a minimal example, such that we can see the problems for ourselfs

This works fine

\documentclass[a4paper]{memoir}
\begin{document}
test\footnote{test\label{a}}

test\footnote{Via footnote $^{\ref{a}}$}
\end{document}

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html
.