From 8ed887823cc3470e09369f9eb80bdc7711774263 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Wed, 13 Aug 2025 00:03:27 +0200 Subject: [PATCH] reset footnote counter each pages and prevent breaking footnote over pages --- lib/matisse-thesis.typ | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/matisse-thesis.typ b/lib/matisse-thesis.typ index 65eb550..2590eb2 100644 --- a/lib/matisse-thesis.typ +++ b/lib/matisse-thesis.typ @@ -82,6 +82,8 @@ numbering: "1", number-align: center, header: context { + // reset footnote numbering at each pages + counter(footnote).update(0) // disable linebreaks in header show linebreak: none // get the current page number @@ -216,11 +218,13 @@ show footnote.entry: it => { let loc = it.note.location() - numbering( - "1. ", - ..counter(footnote).at(loc), - ) - it.note.body + block(breakable: false, { + numbering( + "1. ", + ..counter(footnote).at(loc), + ) + it.note.body + }) } // ---------- BIBLIOGRAPHY ----------