More Control over Footnotes in R Markdown
In R Markdown include footnotes in documents to provide a reference or comment that may provide additional context or an aside to the topic. Traditionally, these numbered notes are placed at the bottom of the page and a corresponding superscript number is added to the text body at the relevant text. R Markdown supports footnotes natively without the need for any additional packages.I’ll cover that first, and then show how to gain more control over footnotes using an additional LaTeX package.
The native footnote syntax is simple, and requires just a paired set of footnote tags.
[^1] – denotes where the footnote superscript notation should be placed.
[^1]: {footnote text} – is the corresponding footnote text. The character within the brackets has to be match the superscript tag and be followed by the trailing the colon. This footnote text can be placed at any spot in the document, but for clarity’s sake, place it close to the text it refers to.