Skip to content

ODT support for endnotes, reader and writer#11516

Open
massifrg wants to merge 12 commits into
jgm:mainfrom
massifrg:odt_endnotes
Open

ODT support for endnotes, reader and writer#11516
massifrg wants to merge 12 commits into
jgm:mainfrom
massifrg:odt_endnotes

Conversation

@massifrg
Copy link
Copy Markdown
Contributor

@massifrg massifrg commented Mar 9, 2026

This PR adds support for endnotes for the ODT format; it's the companion of #11501.

When the endnotes extension is enabled with -f odt+endnotes, the endnotes in the odt file become Notes embedded in a Span with the "endnote" class.

A paragraph with an endnote[[^1]]{.endnote} and a footnote[^2].

[^1]: Endnote text.

[^2]: Footnote text.

Converting to odt with -t odt+endnotes, every Note embedded in a Span with the "endnote" class becomes an endnote in the ODT file.

massifrg added 11 commits March 4, 2026 13:31
Initial support for endnotes for
openxml.
You get an endnote embedding
a Note in a Span that has
an "endnote" class.
A new extension "endnotes" to
enable endnotes in docx format
The "endnotes" extension for docx
is working with the docx Writer.
No tests for this feature yet, but
old tests now pass.
The "endnotes" extension for docx
is working with the docx Writer.
No tests for this feature yet, but
old tests now pass.
When "endnotes" extension is enabled,
the Span of class "endnote" that
embeds a Note may have an id
or attributes for the Note to become
an endnote.
The only condition is that there is
ONLY ONE class and that must be
"endnote".
When the "endotes" extension is enabled,
docx endnotes are converted to a Note
embedded in a Span of class "endnote".
All the Notes inside a Span with class
"endnote" are converted into endnotes
in the resulting ODT file.
When the endnotes extension is enabled,
the endnotes of the ODT file will be
converted into Notes inside a Span
with the class "endnote".
@massifrg
Copy link
Copy Markdown
Contributor Author

@jgm: there's a ext_endnotes new branch on my fork that puts together all the commits of pull requests #11501 (DOCX), #11508 (Markdown) and #11516 (ODT) providing the endnotes extension.

I could make a PR from that branch and close the three separate PRs, which have a few conflicts in MANUAL.txt that I already resolved. Just let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant