Notes are in two parts, word/footnotes.xml and
word/endnotes.xml, reached by the footnotes and
endnotes relationships. The main text only marks where each note is
referred to. Both parts have the same shape, so this page shows footnotes.
The reference in the text
<w:r>
<w:rPr><w:rStyle w:val="FootnoteReference"/></w:rPr>
<w:footnoteReference w:id="2"/>
</w:r>
An endnote uses w:endnoteReference in the same way.
The notes part
<w:footnotes xmlns:w="…">
<w:footnote w:type="separator" w:id="-1">
<w:p><w:r><w:separator/></w:r></w:p>
</w:footnote>
<w:footnote w:type="continuationSeparator" w:id="0">
<w:p><w:r><w:continuationSeparator/></w:r></w:p>
</w:footnote>
<w:footnote w:id="2">
<w:p>
<w:pPr><w:pStyle w:val="FootnoteText"/></w:pPr>
<w:r><w:rPr><w:rStyle w:val="FootnoteReference"/></w:rPr><w:footnoteRef/></w:r>
<w:r><w:t xml:space="preserve"> The note's text.</w:t></w:r>
</w:p>
</w:footnote>
</w:footnotes>
| Item | Meaning |
|---|---|
w:id | What the reference names. It is not the number shown. |
w:type | normal (the default), separator (the line above the notes), continuationSeparator, or continuationNotice. |
w:footnoteRef | In the note, where the note’s own number is printed. |
A note’s content is block-level, like the document body: paragraphs and tables.
The numbers shown
The number shown is not stored. Footnotes are numbered in the order they are referred to
in the document, starting from the value in the footnote properties, and the IDs in the
file can be in any order and have gaps. A reference with
w:customMarkFollows uses a custom mark from the following run instead of a
number.
Numbering format, restart and position come from w:footnotePr and
w:endnotePr, in word/settings.xml for the document and in a
section’s w:sectPr for that section.