Ask Your Question

JayBrown's profile - activity

2017-01-27 22:27:24 +0200 received badge  Famous Question (source)
2016-10-16 22:03:29 +0200 answered a question LibreWriter: convert footnotes into endnotes or vice versa? Plus: macOS workflow to convert manually

So the answer is that there is no (official) solution (yet). There isn't a one-shot-convert function in Writer (yet), so I can only suggest that you use the nnConv script (renamed from "LOconv"), which will automate the xml hacks for you. It will work on odt and fodt.

https://github.com/JayBrown/nnConv

  • distro contains a workflow version and shell script with osascript prompts (both for macOS)
  • repo also contains a separate *nix shell script that should work for macOS/Linux/BSD etc. purely on on the command line (tested only on macOS)

It doesn't work on docx files, and probably never will, because that document format is just plain insane. The solution would be to write in odt or fodt format and just export/save as docx, if you need MS Office compatibility, or even as doc, if your work needs to be imported into e.g. InDesign.

2016-10-15 19:57:13 +0200 commented answer LibreWriter: convert footnotes into endnotes or vice versa? Plus: macOS workflow to convert manually

Ah, OK, that's what I feared. You can easily replace everything at once with the sed command, which is what I did in the workflow. So I'll send them an "enhancement" bug report.

2016-10-15 13:19:50 +0200 received badge  Notable Question (source)
2016-10-14 23:29:18 +0200 commented answer LibreWriter: convert footnotes into endnotes or vice versa? Plus: macOS workflow to convert manually

Thank you… yes, I knew about that as well. For the occasional note it's probably fine, even though the right-click contextual menu isn't always accurate (often missing the footnote/endnote menu item… but it's not a good option for articles/chapters/books with hundreds of footnotes. In these case you'd want a single command to convert all footnotes to endnotes (and/or vice versa) in one shot.

2016-10-14 23:21:59 +0200 received badge  Popular Question (source)
2016-10-14 21:21:42 +0200 commented answer LibreWriter: convert footnotes into endnotes or vice versa? Plus: macOS workflow to convert manually

Thank you, but that's not what I'm looking for. I know how to change/find/replace styles. When you look at the xml of an OpenDocument file, you'll see that there is a distinct difference between footnotes and endnotes, independent of the style: the former have note-class="footnote", and the latter have note-class="endnote". So the feature request, if it hasn't been implemented yet, is a function to change the note class, not the note style.

2016-10-14 14:09:47 +0200 received badge  Editor (source)
2016-10-14 13:57:45 +0200 asked a question LibreWriter: convert footnotes into endnotes or vice versa? Plus: macOS workflow to convert manually

Is there a way to convert footnotes into endnotes or vice versa in LibreWriter?

You can change the settings to display footnotes at the end of the document, but there's no conversion.

In an old discussion I found a hint to edit an odt's content.xml, so I created a workflow for macOS that will do that, i.e. convert footnotes <> endnotes (odt & fodt): https://github.com/JayBrown/LOconv

But it would be better, if you could do it from within LibreWriter. Any chances of this being implemented in the future? It seems to be quite easy to do such a conversion. Or has it already been implemented, and I just didn't find it?