Thank you for everything.
Unforunately while trying to spot additional errors, I found the exact same problem but with a normally formatted paragraph. (same simple style as most paragraphs).
The only way to fix it was by deleting the section it was in.
I think I’ll have to do without sections. It’s too risky.
I will need to create separate documents for each separation in endnotes in my book. To bring the book together, I will need to export the PDFs and use a PDF editor to compile them.
The challenge I now face is finding a PDF editor which allows PDFs to be added together and their pages rearranged, while preserving the links of the endnotes, so that clicking on an in-text endnote will bring me to the correct endnote page.
Any suggestions welcome.
PDF arranger is fantastic except for how it breaks the links.
OnlyOffice allows for the rearranging of pages while preserving links, but I only managed to get this to work for a small test doc, not a larger one. Also, it doesn’t allow multiple PDFs to be added together.
LibreDraw has a very serious bug when working with PDFs whereby it ignores text alignment and causes text to bleed off page.
Scribus also preserves links at a basic level but I’m concerned it may like LibreDraw causes problems since likewise converting the PDF into another format to allow for editing/rearrangement.
My remaining options are PDFChain/PDFtk, cpdf, jpdftweak, MasterPDF Editor, PDF Sam, Adobe Acrobat (via Wine), and PDF-Xchange (via Wine).
It’d be really useful if anyone has info on which of these may or may not work at allowing multiple PDFs to be added together and their pages rearranged while preserving the links between them.
I’d test them all if it wasn’t so costly to do so (either paying money for easy-to-use software, or spending hours trying to figure out how to do the basics of difficult-to-use software just to test something).
But once I’m confident in a software I’ll be willing to pay and/or overcome any learning curve.