On this page:
8.18
top
up

5FootnotesπŸ”— i

procedure

( note pre-content...)element?

pre-content:pre-content?
Creates a margin note for HTML and a footnote for Latex/PDF output.

syntax

( define-footnote footnote-idfootnote-part-id)

Binds footnote-id to a form like note that registers a footnote. Binds footnote-part-id to a function that generates a section to display the registered footnotes. (The section generated by footnote-part-id will not show a title or appear in a table of contents; it will look like a footnote area.)

Beware that any content passed to footnote-id will occur twice in at least an intermediate form of the document, and perhaps also in the rendered form of the document. Consequently, the content passed to footnote-id should not bind link targets or include other one-time declarations.

Example:
@require [scriblib/footnote]
 
@define-footnote [my-notemake-my-note]
 
@title{MonthsoftheYear}
 
@section{January}
Januaryhas31days.
 
@section{February}
Februaryhas28daysincommonyears.@my-note{Inleapyears,
Februaryhas29days.}
 
@make-my-note[]
 
@section{March}
Marchhas30days.

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /