Chapter 18. Footnotes

The shipped AsciiDoc configuration includes three footnote inline macros:

footnote:[<text>]
Generates a footnote with text <text>.
footnoteref:[<id>,<text>]
Generates a footnote with a reference ID <id> and text <text>.
footnoteref:[<id>]
Generates a reference to the footnote with ID <id>.

The footnote text can span multiple lines.

The xhtml11 and html5 backends render footnotes dynamically using JavaScript; html4 outputs do not use JavaScript and leave the footnotes inline; docbook footnotes are processed by the downstream DocBook toolchain.

Example footnotes:

A footnote footnote:[An example footnote.];
a second footnote with a reference ID footnoteref:[note2,Second footnote.];
finally a reference to the second footnote footnoteref:[note2].

Renders:

A footnote [2]; a second footnote with a reference ID [3]; finally a reference to the second footnote [3].



[2] An example footnote.

[3] Second footnote.