Bug 89352 - Allow user to change all Footnotes to Endnotes, and vice-versa
Summary: Allow user to change all Footnotes to Endnotes, and vice-versa
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:25.2.0 inReleaseNotes:25.2
Keywords:
: 103249 143430 (view as bug list)
Depends on:
Blocks: Footnote-Endnote
  Show dependency treegraph
 
Reported: 2015-02-12 21:12 UTC by bernard
Modified: 2025-10-29 11:30 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
demonstration of enhancement request (1.43 MB, video/x-matroska)
2024-11-11 20:34 UTC, Jim Raykowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bernard 2015-02-12 21:12:23 UTC
When writing a document, it is far easier to see the notes in each page. But when publishing, specially for large document, it is often necessary to have all notes as endnotes, depending on edition format.

Now, i need to change each note type 1 by 1, which is not funny. I would apreciate a function that change the format for all notes.

Thanks !
Comment 1 V Stuart Foote 2015-02-13 13:43:48 UTC
Reasonable enhancement request, of unknown technical complexity. It does not appear to have been suggested in prior enhancements. Setting New.

@bernard -- would help move the suggestion along if you were to provide mockup and annotation of how you envision the feature would work. Start with simplest case of toggling all pagenotes/footnotes to endnotes--what should the GUI be? Rough sketch it out.  Opposite direction of endnotes to footnotes likely to be more of an issue, but how should it work?
Comment 2 bernard 2015-02-13 22:42:55 UTC Comment hidden (me-too)
Comment 3 bernard 2015-02-13 22:45:01 UTC Comment hidden (obsolete)
Comment 4 David 2015-02-25 09:08:47 UTC
YES PLEASE! :) 

This has *long* been a simple matter of menu choice in Word (as long as I can remember, and that goes back 15 years or so).

I asked about this on AskLibO back in 2012...

http://ask.libreoffice.org/en/question/5341/is-there-a-way-to-convert-all-footnotes-to-endnotes-and-vice-versa/

...but I didn't think to raise an enhancement request at the time.

This is (yet another) feature that would make refugees from MS Office much more comfortable and confident, as well as simply being a Good Thing In Itself. 

http://goo.gl/fj01mP

Those using Writer for academic writing often have cases of needing the same document in endnote and footnote format. At the moment, this is cumbersome in the extreme with LibO Writer.

Whether editing notes should be taken up as part of this enhancement request is a different matter. I take it this is simply about endnote/footnote conversion (and vice versa).
Comment 6 Timur 2018-03-06 12:51:06 UTC
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)"
Comment 7 Timur 2020-03-23 09:55:43 UTC
*** Bug 103249 has been marked as a duplicate of this bug. ***
Comment 8 Timur 2021-07-19 08:42:32 UTC
*** Bug 143430 has been marked as a duplicate of this bug. ***
Comment 9 R. Green 2021-07-19 09:55:28 UTC Comment hidden (obsolete)
Comment 10 R. Green 2021-07-19 10:06:26 UTC
Sorry, my last comment was added in error. Could someone make it "obsolete". 

But +1 to the feature request.
Comment 11 Mike Kaganski 2024-11-11 05:24:47 UTC
Jim: would it be possible to add such a context menu items to the respective Navigator sections, next to the "Delete All ..."?
Comment 12 Jim Raykowski 2024-11-11 20:34:50 UTC
Created attachment 197553 [details]
demonstration of enhancement request

Thanks Mike for the heads up.

Using how SwInsFootNoteDlg does this for one change and how selections are made by the Navigator delete all function - I think what is shown in demo is what is being asked? If so, I will send a patch that does this to gerrit for review.
Comment 13 Mike Kaganski 2024-11-12 04:35:00 UTC
(In reply to Jim Raykowski from comment #12)

I believe that what you offer is exactly what was requested. Thank you!
Comment 15 Commit Notification 2024-11-12 19:02:13 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/1b49aa0bad6d1fce29f27112991ddd839600cd0d

tdf#89352 Allow user to change all Footnotes to Endnotes and vice versa

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 David 2025-10-27 10:48:34 UTC
I've finally had the time (taken the time) to get the update and test this enhancement.

After finding *HOW* to use it (it took me a while to find it in the Navigator - thought it would be with the Tools -> Footnote/Endnote settings...: could it *also* go there?), it seemed to work perfectly.

HOWEVER! When you change (e.g.) foot -> end, the *STYLE* does not change. Writer still thinks the endnotes are footnotes, and there's no easy way I can see to convince it otherwise. So, you need to adjust the FOOTNOTE style in order to tweak the way your ENDNOTES look.

This didn't happen with the "manual" method:
https://ask.libreoffice.org/t/is-there-a-way-to-convert-all-footnotes-to-endnotes-and-vice-versa/1587/12?u=dajare

I don't think it should happen with the automated method, either. This should probably be a "new bug"; I searched, but couldn't find that this precise issue had already been reported.

INFO: 
Version: 25.8.2.2 (X86_64) / LibreOffice Community
Build ID: 580(Build:2)
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Ubuntu package version: 4:25.8.2~rc2-0ubuntu0.24.04.1~lo1
Calc: threaded
UBUNTU 24.04.3 LTS
Comment 17 Jim Raykowski 2025-10-27 16:27:27 UTC
(In reply to David from comment #16)
> HOWEVER! When you change (e.g.) foot -> end, the *STYLE* does not change.
> Writer still thinks the endnotes are footnotes, and there's no easy way I
> can see to convince it otherwise. So, you need to adjust the FOOTNOTE style
> in order to tweak the way your ENDNOTES look.
Hi David, Looks like this is also the case when using the 'Edit Footnote/Endnote' dialog to convert footnote/endnote. The dialog can be accessed by right-click on a footnote/endnote character in a paragraph, then select the 'Footnote or Endnote...' menu item. 

I'll try to figure out how to make the style change automatically when converted.
Comment 18 Jim Raykowski 2025-10-29 04:17:37 UTC
Patch that changes the style to match the type is here:
https://gerrit.libreoffice.org/c/core/+/193066

Probably best to open a new bug report for this patch to be filed under since the issue preexisted the patch done for this enhancement request.
Comment 19 David 2025-10-29 08:16:30 UTC
Will do! Thanks so much for your work on this feature/issue, Jim. Greatly appreciated! :)
Comment 20 David 2025-10-29 08:24:50 UTC
I should have waited to say that until I'd filed the bug. Hope this looks okay:

https://bugs.documentfoundation.org/show_bug.cgi?id=169129