You are viewing

 July 2009 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

### Making multiple references to the same footnote in LaTeX

Posted on 2008.09.23 at 12:40
Current Mood: studious
Tags: ,
I'm currently working on getting my thesis proposal into shape and laying out my next experiments, and in the process of describing the threat model today, I discovered that I wanted to make two references to the same footnote. Thankfully, I'm using LaTeX, which is, generally speaking, good at weird tricks that other programs have difficulties with, although there's no guarantee that it'll be easy. This proved to be just hard enough that I figured I should write it down for the next time I wanted it:

### Making multiple references to the same footnote in LaTeX

If you're just in the regular document, you can have the first reference be as normal:

Text that has a footnote.\footnote{This is the footnote}

And then when you want to refer to the last footnote again, you use

\footnotemark[\value{footnote}]

(If you don't want to refer to the last one, you've got to figure out the appropriate number to put in the square brackets instead of using \value{footnote}.)

Putting that all together:

Text that has a footnote\footnote{This is the footnote} looks like this.Later text referring to same footnote\footnotemark[\value{footnote}] uses the other command.

However, I'm working with tabular data. First, I had to put the tabular data inside a minipage so that the footnote showed at all. But then \value{footnote} is not the value I wanted. Inside the mini page, you actually want mpfootnote.

But then you find out you have another problem -- numbering in the minipage uses a, b, c rather than 1, 2, 3, so you have to tell it to use that scheme:

\renewcommand{\thefootnote}{\thempfootnote}

So, putting that all together:


Note that if you end the minipage before the caption, you can have the footnote appear right below the data. In my case, I found that looked a bit weird, so I put it below the caption.

And there you have it, duplicated footnotes within a table. I won't say it's easy, but at least it could be done!

(Anonymous) at 2009-08-13 19:39 (UTC) (Link)
I don't know if the following works in table and minipage, but it is a cleaner solution than \footnotemark[\value{footnote}] (or whatever value you need in the bracket).

Instead, put a label in the footnote you need multiple references to. Then, by using \footnotemark[\ref{}] you get multiple reference to the same footnote.

No matter how many footnotes you add, or where you add them, you still end up with the proper numbering (which is not the case if you use \footnotemark[\value{footnote}] or an hardcoded value in the brackets).
(Anonymous) at 2010-11-18 11:40 (UTC) (Link)
I just tried that, and it doesn't work. \footnotemark expects a number as the argument, which is the footnote number.

On another note: the approach presented above doesn't work with hyperref. The solution is mentioned in hyperref's README file. Just do:

Text that has a footnote\footnote{This is the footnote}\addtocounter{footnote}{-1}\addtocounter{Hfootnote}{-1} looks like this. Later text referring to same footnote\footnotemark uses the other command.
That definitely seems simpler, but I have a feeling it didn't work inside the table & minipage 'cause I do remember trying a few things... Still, I'll have to try it out next time the need arises! Thanks!
(Anonymous) at 2009-11-02 08:14 (UTC) (Link)

#### Thanks!

Thanks, that works. I was using $^1$ which doesn't update
(Anonymous) at 2010-11-09 10:12 (UTC) (Link)

#### Thanks

Great information, very much appreciated :)
(Anonymous) at 2011-03-11 09:24 (UTC) (Link)

#### id worx!

thanks a lot, saved an hour or so!

Hecke
Thanks so much for posting this publicly - it's really helped me for this paper I'm writing!
Glad it was useful to you! After all my searching for the answer, I was a bit concerned that no one else ever wanted to use the same footnote twice so I'd better document it myself.
(Anonymous) at 2011-08-22 11:09 (UTC) (Link)

#### Hi, what about the package: cleveref.sty?

%preamble\usepackage{hyperref}\usepackage{cleveref}\crefformat{footnote}{#2\footnotemark[#1]#3} %bodyFirst page, referencing future footnote\cref{second}.Second paragraph, first footnote\footnote{\label{first}First footnote!}Second page, creating the second %footnote\footnote{\label{second}Second footnote}, and %referencing the first footnote\cref{first}.

The version to install must be > 0.16.1.

For installation do:

wget http://mirror.ctan.org/macros/latex/contrib/cleveref.zipunzip cleveref.zipcd clevereflatex cleveref.insput the cleveref.sty in a tex-search-directory and done!------------------------------------siles7

#### Re: Hi, what about the package: cleveref.sty?

That doesn't sound like what I needed to do at all, which was more like this:

first item [1]
second item [1]

[1] footnote goes here

That sounds like it would produce

first item [1]
second item [2]

[1] footnote goes here
[2] footnote refers to first footnote [1]

(Anonymous) at 2013-02-06 16:36 (UTC) (Link)
Have someone idee how to create footnote using this template?

Some text[1] bla bla bla[2]

--------------------------------------
1, 2 footnote goes here