Ask Your Question

Is there a way to convert all footnotes to endnotes AND vice-versa? [closed]

asked 2012-08-27 23:01:24 +0200

David gravatar image

There is a relatively convenient way to manually edit a footnote (or endnote) and change it to an endnote (or footnote). This is fine for a few notes, even a few dozen. But for hundreds, and back-and-forth between note style (as writers often need to do for submitting the same piece to different editors), this is very tedious.

(The counsel of despair is to bring the document into MS Word which has had this feature for many a long year.)

Serious web-searching has turned up no alternative for LibreOffice Writer yet, though. Has anyone devised a macro, or figured out a way of doing mass notes conversion to foot~ or end~ in a single pass?

I live in hope!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-14 13:27:27.806149


See now the enhancement request fdo#89352 on

David gravatar imageDavid ( 2015-02-25 10:09:34 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2012-11-11 01:11:05 +0200

rich gravatar image

Another way to change them is to open the file with a zip file unzipper (You can probably rename the extension from odt to zip and right click or double click). Open content.xml in a plain text editor (don't use anything that will add code, like word) do a search and replace for footnote, replacing with endnote. save the file, rezip the directory, and rename it to the original filename with the extension. I am operating from memory, so I might be off on a detail here and there, but this worked for me and is pretty easy. Would be nice if it were a feature or an extension.

edit flag offensive delete link more


A bit cumbersome, but THIS is what I wanted! It takes 2 passes with normal search replace: class="footnote to class="endnote AND name="Footnote to name="Endnote (or vice versa); search terms = text in "code" highlighting, used as-is (no close quotes) to ensure all relevant tags changed. Thanks!

David gravatar imageDavid ( 2012-11-11 15:36:20 +0200 )edit

Awesome method!

ventolinmono gravatar imageventolinmono ( 2017-07-13 10:44:34 +0200 )edit

answered 2012-08-28 08:35:38 +0200

vsfoote gravatar image

updated 2012-08-28 09:12:57 +0200

Not built in or bundled with a DocumentFoundation extension to LibreOffice.

But, believe you'll find the Zotero Standalone v3.0 with v3.5.x plugin for OpenOffice/LibreOffice supplemented with the FireFox browser plugin will do exactly the style changes you are looking for--working with CSL and "reference marks" of your citations in your text. You may also want to activate a no cost dataservice with for hosting your data--but that is optional.

Some version dependencies on both sides, but a pretty active forum and useful documentation. Some of the "3rd party" documentation is best.

edit flag offensive delete link more


Just verified that Zotero Stand Alone v3.08 and LibreOffice plug-in 3.5.3 are functional with LibreOffice Writer 3.6.1 RC2 and Java JRE 1.7u6, and that footnote/endnote format can be toggled while working in "classic" citation mode. Document will reformat dynamically to the chosen style.

vsfoote gravatar imagevsfoote ( 2012-08-28 09:11:51 +0200 )edit

I must have done something wrong because this isn't working for me, not with a document created before Zotero install(s), nor one I did after. I get the "Set Document preferences" dialog from the Zotero toolbar in LO, I see the radio-button options for foot/endnote, but ... no change! :(

David gravatar imageDavid ( 2012-08-29 22:01:46 +0200 )edit

Hmmm, puzzling. I've used Scholars Aid and numerous EndNote releases. Zotero's referencing are very similar. I had no issues with inserting "field codes" (place holders for dynamic restructure of citation style), so I know it works. Maybe get some specific help on the Zotero user forums?

vsfoote gravatar imagevsfoote ( 2012-08-30 15:28:18 +0200 )edit

Other aspect is usage, Zotero standalone builds a "library" of source material. Enter bibliographical metadata there once, it becomes the basis for your citation, footnote, endnote or bibliography generation. You populate the "library" with your source details--then reference them with field codes.

vsfoote gravatar imagevsfoote ( 2012-08-30 15:39:16 +0200 )edit

As long as you maintain your document with the field codes--you can dynamically change citation style and save out a copy for submission. Once the field codes are removed (or if they don't exist) they have to be reinserted against your "library" to be able to create/modify the citation style.

vsfoote gravatar imagevsfoote ( 2012-08-30 15:45:08 +0200 )edit

@vsfoote - Sounds like this is solution depends fairly heavily on using Zotero from the start. Good to know about! It would also be good to have a "native" LO solution at some point. Very grateful for the input though!

David gravatar imageDavid ( 2012-08-31 09:58:46 +0200 )edit

Sure, hope you can put it to use. Never know when Thompson-Reuters will revist EndNote support for LibO/AOO. But at least TDF is considering partnering with Zotero project, if not native will at least assure complete integration of these two FOSS projects.

vsfoote gravatar imagevsfoote ( 2012-08-31 16:48:59 +0200 )edit

Question Tools

1 follower


Asked: 2012-08-27 23:01:24 +0200

Seen: 7,456 times

Last updated: Nov 11 '12