openjournals / inara

Tools to create JOSS/JOSE publishing artifacts
MIT License
28 stars 17 forks source link

Footnotes in tables are currently broken #69

Open dr-joe-wirth opened 3 months ago

dr-joe-wirth commented 3 months ago

Adding footnotes to a table does not work as expected. Something is broken. I have attached the paper.md file and the generated pdf. Github will not allow me to attach paper.bib because it is not an allowed extension. I have renamed it paper.bib.txt in order to circumvent, but you will need to remove the .txt from this file to get it work properly.

As you can see, the [^1] notation is not working as expected. When the same footnote is used in multiple rows, it creates a new footnote for every row. Also, the footnotes for the column headers are being inserted into to the column headers instead of being footnotes, which defeats the purpose of a footnote in the first place.

I circumvented this issue by using the ^1^ notation instead, but it obviously is not as streamlined as using the footnote generator. I also figured you should be aware of this issue.

Hope this helps!

paper.pdf paper.md paper.bib.txt

tarleb commented 3 months ago

Thank you for the report!

The underlying issue for this is upstream and described in jgm/pandoc#1603. Maybe we can provide a workaround in Inara.