A temporary solution for cross-referencing footnotes in LaTeX and HTML with Pandoc and Quarto. The extension is based on the script provided by Shafayet Khan Shafee for the problem posed by Gustavo Gomes at StackOverflow. On the same matter, see also 1, 2.
This extension offers the ability to cross-reference footnotes using markdown syntax. The markdown syntax is simple: add the anchor to the footnotes using []{#fn-label}
and then cite using @fn-label
.
quarto add bcdavasconcelos/fn-ref
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check in this directory.
Add the following to your _quarto.yml
file:
quarto:
pandoc:
extensions:
- bcdavasconcelos/fn-ref
---
filters:
- fn-ref
---
This extension offers the ability to cross-reference footnotes[^1]. See footnote @fn-label1.
[^1]: []{#fn-label1} The footnote label should come at the begining.