ostraya () wrote,
• Mood: studious

# Making multiple references to the same footnote in LaTeX

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!
Tags: latex, tech
• Post a new comment

#### Error

default userpic