I’m trying to create PDF documents (using LibreOffice) from several plain ASCII files which have endnotes entered as plain text. So, for instance, A sentence might say “So and so(3)” and then at the bottom of the document, it will say (3) with whatever endnote is for that particular passage.
Anyway, I need to convert those to actual endnotes in LibreOffice, so I’ve just been doing a Search for “(1)” and then deleting it, and clicking Insert → Footnote/Endnote, and repeating the process over and over again. I’m just wondering if there’s any easy way to do this, without having to do it manually. I’ve looked into creating a macro for this, but I don’t know enough about the scripting language to do that.