Restart end-of-document footnotes per chapter

After reading related threads, I haven’t much hope of getting a positive answer, but here goes anyway…

I’m trying to restart the numbering of my end-of-document footnotes (or phony endnotes, if you will) with each chapter. There are 187 notes, spread over 12 chapters. I can’t find a way to do it. But before someone says, “It can’t be done” — I DID achieve this EXACT RESULT in a 25-chapter document in whatever version of LOW I was using under Linux in 2018 (probably whichever version accompanied the rollout of Ubuntu Mate 18.04).

I have combed that “successful” document (actually a master .ODM and its corresponding ODTs) and can’t figure out what’s different. The only thing I notice is that in that older document NOTHING appears in the picklist at Tools → Footnotes/Endnotes → Footnotes → Autonumbering → Start at.

Other than the fact that it was created in an older version of LOW, the only difference I can see is the ODM/ODT relationship. It may be that sections have something to do with it, too. I am trying this under LOW v.6.4.7.2; but I have another machine on LOW v.7.2.x and the same problem occurs. There is only one option in the abovementioned picklist — “Per document.”

I have a book manuscript ready for paperback publication. The only thing holding things up is this can’t-restart-numbering problem. I even developed a “cheat” to get the by-chapter headings to separate each chapters footnotes.

Any help would be appreciated. Thank you!

The only way I know of to achieve what you request is to collect your endnotes at end of chapter. This has the additional advantage of not needing contorted tricks to insert “non-note” text (like chapter heading) in the middle of the notes.

Since your document is already split into master + sub-docs, this is relatively easy. Make every sub-doc a section: select all text and Insert>Section. In the dialog which pops up, go to the Footnotes/Endnotes tab and tick Collect at end of section and Restart numbering. As notes appear immediately at end of the section (chapter), after a short separator without page break, you might consider adding a heading with adequate spacing, like “Chapter notes”. This heading could be styled Heading 2 so that it is collected in the TOC for your readers to find the notes easily. Suppressing the default short separator is done in the master document (don’t bother to suppress it in the sub-docs). The separator is defined in the page style used for the chapters (in Footnote tab, set length to 0%).

This is not exactly what you request but the easiest to implement.

I’m sorry to ask to test something I can’t test myself ATM, but I’m not at my computer now. Isn’t it possible to use footnotes and place them at the end of the document?

But maybe I just don’t read the question carefully - it seems to tell that it already does just that.

Thank you, @ajlittoz for your quick reply.

No, I definitely don’t want endnotes at the end of each chapter/section, at least in the case of this book. Each chapter has upwards of 4-6 pages of notes. Readers who like the extra information provided in the notes won’t mind going to the end of the book to read them. But readers who don’t care much for such extra information will find 6 pages of notes an impediment to moving on to the next chapter. For such, the notes will become a barrier, “interrupting the flow” to the following chapter.

What’s really frustrating is that (as I mentioned in my initial posting) I have a long LOW document that works exactly as I want it to — footnotes (pretending to be endnotes) are assembled at the end of the ODM, with numbering restarting at the beginning of each chapter’s notes. I can’t duplicate that success in my current document either under LOW v.6.4.7.2 (my desktop) or here on my laptop (v.7.2.7.2), though both versions will open the successful document and leave it unchanged.

One problem might be that the “successful” ODM has an extra Text section after the sub-docs. I can’t add that section to the new document’s ODM. The ODM Navigator in v.6.4.7.2 will never give me an option to insert a Text section, because that option never appears in the Insert menu; there are only three options — Index / File / New Document. The ODM Navigator in 7.2.7.2 does show “Text” as a fourth choice in that menu group, but it is always grayed out; it’s never available. Does anyone have any idea about why each of these conditions would exist?

Once again, thanks for any help.

@mikekaganski: Thanks for jumping in!

Yes, I’m using footnotes “as” endnotes, exactly as you suggest. It’s a strategy that worked just fine on another long ODM file from 4-5 years ago. See my new note to @ajlittoz .

To add a Text section, you must first select a sub-doc in the Navigator. Then Text is enabled and the text section is inserted before the selected sub-doc. Another procedure is to insert a new text section anywhere and to move it with the arrows in the Navigator toolbar.

I understand your rationale.

As you have noticed, you can’t restart footnote numbering as soon as you collect them at end of document. This is a failsafe precaution to avoid ambiguous numbers because you can’t add “decoration” paragraphs. Notes, whether foot- or end-, are internally generated from some cache. Decorations can only be “simulated” through the use of fake notes, e.g. you attach a “separator note” to a chapter heading with a “blank” number. Fortunately, you can apply any style you want to notes, allowing to embolden or center the separator note.

If you can prepare a 5-page max extract from your “good” file, i.e. 2 1-page chapters with one note in each, and attach it to the question, I’d be glad to analyse it.

@mikekaganski when footnotes are collected at end of document, numbering forcibly reverts to continuous numbering, even if it was per chapter before clicking on at end of document.

1 Like

I was going to tell you that what you said only works in theory. But I just discovered an apparent caveat to your statement. What you said DOES work — provided there are at least TWO subdocuments inserted in the ODM and the second (or subsequent subdoc, not the first) is chosen. With only one subdoc, there’s no non-Text area in which to stick the new Text area. But with two or more subdocs, it works.

So far, so good. No progress elsewhere, but this at least is a step forward.

I’m on deadline for another project this morning, but I will try to create the pared-down version of the “good” file and get it to you before day’s end here in Virginia. Thanks for the offer, @ajlittoz !

@ajlittoz, one more question, please:

When putting the “trailing” Text areas into the ODM, is there some way to designate and tell LOW, “Put the collected footnotes here”? I can insert various indices, etc.; but I can’t find a way to designate the location of the Footnote section. Maybe part of my problem is that the footnotes don’t have a landing area…

Footnote location is configured in Tools>Footnotes & Endnotes in most generic terms (page footer, end of chapter, end of document). This is a “logical” location. You can’t specify a “physical” location: The sequence of text and sub-document sections is a continuous virtual stream. Writer uses the “logical” location and maps it over the “physical” stream, except perhaps for end of document where it might create a last text section in the master (I don’t remember though I made a test this morning before answering).

The issue is not in footnote landing area. They’ll have one anyway. I think it is in the generation process. While the document is scanned for layout, note contents is collected in some internal cache until the time it is needed (bottom of page, end of chapter or end of document). Then it is flushed out. The note number is computed when the note is met. The solution boils down to enabling some restart when conditions are met. Presently, the configuration doesn’t allow it. This is why I’m curious to see how your “good” document is encoded. It is possible that some change removed the possibility from the UI while the ODF specification allows it.

This has been my fear for the few weeks I’ve been wrestling with this. Which brings up a related question — Does an ODF (or ODM) file contain any memory of which version of LOW created it initially? If so, the “good” file might yield this information; and, if that’s the case, perhaps I could revert to that version for the duration of the project…

looking at my own files, it looks like there is an XML element <meta:generator> which reports the LO version used probably at time of last save. – Confirmed – If you save your original file as .fodt (for ease of reading the XML preamble), you’ll get your current version identification.

Extracting this information without modifying the file is a bit more tricky. An .odt is nothing more than a ZIP archive. Make a copy as a safety measure. Extract it in some convenient location. Open meta.xml in a text editor. Search for meta:generator. You’ll read the latest LO version which touched the file.

Responding this again:

  1. Would it be okay to include the ODM and a full two chapters of ODT? They’re short. In fact, the book from which they are taken is only a 6-in by 9-in format document. (I can zip these three files together to make them even smaller.) BTW, as you will see, this experiment was successful. It still re-numbers the footnotes at the end. I was afraid v.7.2.7.2 would strip away whatever “magic” was allowing this file to perform normally.
  2. Is there an upload option on the forum here? Or should I send it to you via PM?

To upload, either edit your question or add a comment. The tool has an icon looking like a mail basket with an up-arrow. I think you can attach the 3 files without zipping them.

@ajlittoz — FWIW, because I iterate through so many drafts while I write (why not, since storage is cheap?), I always add the current (and often the time) to a file when I save it.

That being the case, I wondered if it would be of any import that the ODM of the “working” footnote manuscript is dated “2017-02-06,” i.e., 6 Feb 2017.

I don’t think the date itself is relevant. The important factor is the LO version used to save it on this date.

Yes, and that’s what I don’t know how to determine. You said that looking at the XML reveals the last LOW version to touch the file. I was hoping the originating version info was imbedded.

"New users can only upload 2 files," and I was trying to upload the ODM and two ODTs. ZIPs don’t seem to be on the upload utilitiy’s radar either. If I posted these on a personal storage account (say, GDrive or Dropbox) could I PM the link to you?

Create a ZIP file.
Change the extent from ZIP to ODT.
So you can upload the file here.
Anyone who downloads your file must then change ODT back to ZIP.

Thanks, @Hrbrgr. It’s good to get to know one of the tricks of the forum.

1 Like

Footnotes-at-End-Test-zipped.odt (134.2 KB)
@ajlittoz, here you are. I hope you can ferret out the secret.

I apologize for the delay. When I pressed the “send” button yesterday, the ever-vigilant forum-bot kindly informed me that I had sent the maximum number of messages allowed to new users, and that I would have to wait 13 hours before sending my next missive. Oh, well — patience is a virtue to be mastered…