Is there a possibility to convert all endnotes (or footnotes) to a (separate) text? Thanks in advance.
OS name? LO version? Save format?
You must process every note separately, e.g. copy and paste.
If you’re brave enough, save as .fodt. Open this document in a text editor and retrieve all note texts (preferentially with a macro and paste it somewhere). This alternate method requires some lnowledge on the XML encoding. It may be longer to implement and debug than manual processing, depending on number of notes. So give an order of magnitude.
Well, I’m using Windows 11 and LibreOffice 25.2.0.3.
The number of footnotes is unfortuately 1218 … So copy & paste will not work.
Thanks for helping.
I tested by exporting as PDF, and copying from there, but I got the endnote number at the end of the previous paragraph.
Also selected all paragraphs with style Endnote, copy, then pasted, and got all endnotes in the same row.
<text:note-citation>
i</text:note-citation><text:note-body> <text:p text:style-name="P3">
End note content</text:p></text:note-body>
@LeroyG
More precisely a note is an element
<text:note text:id="ftn0" text:note-class="footnote">
note anchor and body
</text:note>
Note class can also bee endnote
.
When removing note, one must not forget to remove also the outer “boundary” otherwise Writer will recreate an empty note.
The “simplest” way to retrieve notes is to copy contents of element <text:note-body>
. It is a well formed collection of paragraphs (text:p
). This collection can be pasted at a “safe” location.
I have already done that with a macro-generator to create a skeleton document. The marvellous thing with Writer is you need not produce a fully compliant ODF file. You generate it just enough to be accepted and Writer will normalize it.
Just for fun, I attach an example of a macro (operating on a .fodt) with a different purpose.
noteprocess.anab.odt (1.5 KB)
Change extension odt to txt to open the file.