LibreOffice Writer convert footnotes to endnotes and change the endnote anchor

Converting all footnotes to endnotes was easy:

  1. rename text.odt to text.odt.zip and extract content.xml
  2. open content.xml with an XML editor and change “footnote” to “endnote”
  3. Save content.xml and place in text.odt.zip
  4. Rename text.odt.zip to text.odt

Now, my only remaining problem is to change the endnote anchor. By default, the endnote anchor in the main text is in superscript.
Previously postings suggest editing the style “footnote/endnote anchor” … however, these style don’t seem to exist anymore in LibreOffice 7.3.7.2. Only the “endnote” and “footnote” style exist, but they do not contain anchor settings.
Any suggestions?

Footnote Anchor and Endnote Anchor are Character styles as they affect only one or two characters in paragraph, therefore look in the Character style pane.

BTW Have you looked at Tools > Footnote/Endnote settings?

2 Likes

Just for the record: not a mass-conversion method, but to convert a single footnote to endnote, right-click the footnote anchor, select the context menu’s Footnote or Endnote... item, and in the Edit Footnote/Endnote dialog, change the type.

The XML editing method was also explained in Is there a way to convert all footnotes to endnotes AND vice-versa?.
There is tdf#89352.

Thanks! The distinction between the different styles and how to access them has not been explained in previous posts. So I was searching in the wrong location

Hi Mike, thanks for your reply.
However, I don´t think the instructions you refer to are particularly useful.
*Copying from the link: *
"It takes 2 passes with normal search replace: class="footnote to class="endnote AND name="Footnote to name=“Endnote (or vice versa)”

For one, they do not refer to the content.xml file as the file to do the replacement of the variables.
Next, these suggestions "are "’“inconsistent and” therefore obfuscate the necessary " conversion steps :slight_smile:

@hjkwvdmolen Reread carefully @mikekaganski’s comment. The single note conversion procedure described above is done manually in Writer UI. It does not go through the XML. Therefore it is easier for casual users and much much safer.

Dear ajlittoz. Yes, I have read Mike’s comment carefully and thanked him for it. Explained that he provided extra information that was not in the previous posts, which was helpful. And yes, using LO functionality is always less risky than hacking the underlying XML files.
However, my second response was about his remark that the XML solution was provided earlier. IMHO, the referred solution, as provided with the given url, was not very helpful. As I tried to point out in a light way, this solution lacked information and consistency.

I don’t see why people so much like to compete - a notice of “was also explained” (note I used “also”, not “already” or anything else which could imply something wrong like “your explanation was useless” - which I obviously did not wrote nor mean) - ignited some lengthy discussion why was “my precious” more worthy and all. And no, that one wasn’t “inconsistent and therefore obfuscate the necessary conversion steps” - it provided another way, not needing hacking ZIP package, and instead, showed how to use Flat ODF, by saving not to ODT, but to FODT, which is a standalone single XML, more convenient for handling in tasks like this (yet with own issues: tdf#117718).

Having the references to other related questions on this site helps people to get more context. Each such reference creates links both ways - e.g., you may see the link to here below that question, appeared because of my reference here.

2 Likes

Seems some work was done yesterday
Bug 89352 - Allow user to change all Footnotes to Endnotes, and vice-versa

1 Like