Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reference two times to a single footnote in rmarkdown?

I try to reference to a single footnote in a few places in the text. However, with the code below, I've got two footnotes with the same content.

---
title: "My document"
output: html_document
---

One part of the text [^1].

Two pages later [^1].

[^1]: My footnote

enter image description here

Is it possible to reference more than once to a specific footnote using rmarkdown?

like image 329
Jot eN Avatar asked Aug 31 '25 04:08

Jot eN


1 Answers

I had the same problem. I used html tags which worked really well. Whatever you want as superscript just put between the <\sup> like below:

<sup> text </sup>

jan 6 2023 update: now I use quarto which is eally easy as you can just use do[^1]

[^1]footnote text

like image 84
alejandro_hagan Avatar answered Sep 02 '25 16:09

alejandro_hagan