fix: footnote counting per page/chapter and collecting at the end really work

Both were selectable in the dialog and changed nothing — they only rode the
file formats, so an imported document numbered and placed its notes wrong.
noteLabels now counts within a bucket (class, chapter, or the page pageBreaks
publishes through setNoteAnchorPages); a collected footnote leaves position:
absolute and opens its own page, as LibreOffice does. Counting and position
move to the footnote tab, the only place LibreOffice offers them.

The separator's own alignment moves the line alone — probed, notes stay left.
This commit is contained in:
Steffen Becker committed 2026-08-14 23:11:10 +02:00
1 parent ba827b4ce9
commit bf564fbab4
7 files changed
+116 -32

No files matched your search

+4
View File
@@ -145,4 +145,8 @@ export function applyNoteVars(s: NoteSettings): void {
root.setProperty('--note-sep-rel-width', `${s.separator.relWidthPercent}%`);
root.setProperty('--note-sep-color', s.separator.color);
root.setProperty('--note-sep-align', s.separator.align);
// "Collect at end of document": the footnotes leave the page foot and flow with the
// endnote list. editor.css takes them out of `position: absolute` from this, which is
// also how pageBreaks.ts reads the setting.
document.documentElement.toggleAttribute('data-collect-footnotes', s.footnote.position === 'document');
}