Footnotes and Endnotes
Footnotes
To add a footnote, you insert a footnote tag like this2.
Then you add the footnote content later in the text, using the same tag, with a colon and a space:
That’s it. You can keep writing your text after the footnote content.
To add a footnote, you insert a footnote tag like this[^foo].
Then you add the footnote content later in the text, using the same tag, with a colo\
n and a space:
[^foo]: This is the footnote content.
That's it. You can keep writing your text after the footnote content.
Please note it is best to put the lines with footnote content at the end of the text file (this helps avoid problems when you are e.g. using code blocks in your book).
In response to author feedback, we’d like to be very explicit about a few things:
- There needs to be a blank line before and after the footnote content.
- The
^caret symbol is required. - Each footnote will need its own unique tag. So the first one might be
[^foo1], the second[^foo2], etc. - The tag doesn’t have to have
fooin it. It can be anything, like[^note1]or[^tag1]. - At the moment, we don’t support periods in footnote tags, like this
[^55.3].
Footnotes will format themselves correctly over multiple lines. However, if you want to continue the footnote on a second line using a line break of your own choice, you indent the second line (and any following lines) by 4 spaces.
Like this:3
[^foo2]: This is the footnote text. We are now going to add a second line
after typing in four spaces.
Endnotes
We don’t have specific support for endnotes, but you can achieve this with crosslinks.
Remove Footnotes
If you want to remove footnotes for a specific section, and not for your entire book, you can put the following on a line by itself (with blank lines above and below it):
{footnotes-off}
To turn them back on, do this:
{footnotes-on}