Footnotes
Wrap a note's text in [note]...[/note] where its mark belongs. The text leaves the line: a small raised number
takes its place, and the note itself is set at the foot of the page the mark lands on.
{ "p": "This policy applies to every third party granted access to a classified system.[note]Third parties are bound through the data processing addendum, clause 7, which incorporates this policy by reference.[/note] It is reviewed every year." }
The paragraph reads "...classified system.¹ It is reviewed every year.", and the page ends with a short rule and "1. Third parties are bound through...".
Examples
Marks in every kind of container
A records retention policy whose notes cite the acts it relies on and
explain its terms. Its marks stand in a paragraph, as a pair side by side, in a table cell, in a list inside a cell, in
list items and a nested item, and in a column, and its notes are set in a declared footnote style.
- Output
- Template
- Data
Notes across page breaks
A civil complaint whose numbered allegations run over three pages, citing the statutes, cases and contract clauses they rely on. Each note stands at the foot of the page its allegation lands on: notes 1 and 2 on page 1, notes 3 to 6 on page 2, notes 7 and 8 on page 3.
- Output
- Template
- Data
Mark size, headings and markup in a note
An annual report whose key figures carry notes. Note 1 is marked in a
heading, and the mark on the 34pt return is far larger than the marks in the 9pt labels beside it, since a mark is 65%
of the text it sits in. Note 3 holds a link and note 4 a bold warning, in a footnote style set in italic grey.
- Output
- Template
- Data
The mark
| Number | Assigned in document order, from 1, across the whole document: a nested list item's marks after its parent's, a right column's after the left's. Numbering never restarts. |
| Size | 65% of the text it sits in (CSS GCPM's ::footnote-call { font-size: 65% }), so a mark in an 11pt paragraph is 7.15pt and a mark inside [fontsize, 20] is 13pt. |
| Position | Raised 0.33 em, like [sup]. |
| Spacing | Written against the word before it: word[note]...[/note] puts no space between the word and the mark, and a line never breaks between them. |
| Side by side | Two notes written together, word.[note]...[/note][note]...[/note], are two marks, each with its own number and its own note. |
In the PDF the mark is a link to its note, and the note's number links back to the mark.
A note marked in a heading is no part of the heading's words elsewhere: its table of contents entry and its bookmark read the heading without the note.
The note
At the foot of the page, beneath a short rule, each note is set as N. text in the built-in footnote style, at the
width of the page's text column. The note's text may carry shortcodes of its own ([b], [i], [link], ...).
- A line that carries a mark only stays on its page if its note fits beneath it; otherwise the line moves to the next page with its note. A list item, a table row, a flow of columns and a block placed whole - a float, a row of side-by-side columns, vertical text, a table kept together - follow the same rule for the notes they mark.
- A note taller than a page cannot move with its line, so it is split: as much as fits stands at the foot of the mark's page and the rest continues at the foot of the next.
- If even one line of a note cannot be placed, the report says so with a
WARNING.
The footnote style
A document that declares no footnote style gets one derived from body: every key of your body style, with the
font size at three quarters of the body's. Under a 10pt body, notes are 7.5pt; under an 11pt body, 8.25pt.
To restyle the notes, declare a style named footnote. It takes the place of the derived one, so state the size you
want:
{
"styles": {
"body": { "fontSize": 10, "lineHeight": 1.5 },
"footnote": { "fontSize": 8, "color": "#6b7280", "lineHeight": 1.3 }
},
"content": [
{ "p": "Where a class is unclear, it is Confidential until the owner decides.[note]The information owner is the accountable executive named in the system register.[/note]" }
]
}
The mark is not set in the footnote style: it follows the text it sits in, at 65%.
Where a note can go
A note can be marked anywhere in the body: a paragraph, a heading, a list item at any depth, a table cell, a column, a floated block or vertical text. Wherever the mark stands, its note is set at the foot of the page the mark lands on, across the page's text column, not inside the container.
A few places have no page foot of their own, and a note marked there is not drawn. The render report says so with a
WARNING:
| Marked in | What happens |
|---|---|
a header, a footer or a watermark | The note takes no number and its text is left out, so the body's notes are numbered without a gap. A band is repeated on every page and has no single foot to own a note. |
a caption, text inside an svg, or the text of another note | The note takes no number and its text is left out. |
a block placed with position: "fixed" | The mark is drawn with its number, and the note is not. |
Accessibility
In a tagged PDF (a ua-1 or ua-2 claim), each note is a footnote element (FENote, or Note under PDF 1.7) holding
its label and its paragraph, paired with its mark. It is placed in the reading order directly after the mark, so a
screen reader announces the note where it is referenced although the page draws it at the foot. The rule above the
notes is an artifact.
DOCX
The DOCX writes real Word footnotes: a footnotes part with Word's separator, each mark a footnote reference and each
note a footnote in the footnote style. Word numbers and places them itself, so a note may land on a different page
than in the PDF when Word paginates differently. A note in a header, a footer or a watermark is left out, as in the PDF.