Open gzagatti opened 6 months ago
I finally figured out what part of the code is causing this. It is the thm-reset-counter-heading-at
function, specifically
show heading.where(level: level): it => {
thm-reset-counter(group)
it
}
Reversing the order of thm-reset-counter(group)
and it
seems to fix the issue. But I'm still not sure why this is causing the outline page number to be decreased.
In the example below, I add a page break after H1. Normally, Typst will display the page after the break in the outline.
But when I insert
thm-rules
show rule after theheading
show rule, the outline entry does not behave as expected anymore. The outline shows the page entry before the break.If I reverse the order and call the show rule for
thm-rule
beforeheading
, the problem goes away. I find this behavior very odd. My assumption is that lemmify shouldn't be messing up with headings in its show rule. Any idea of what's going on here?