hey everyone
i've managed to reset my page numbering with #counter(page).update(()) (i have to use the array as opposed to #counter(page).update(1), or else the first page of content defaults to the "second" page, not the "first") and this is displaying properly in page footers, BUT the change isn't reflected in my outline, which still shows page numbers as if they were never reset. how can i make the outline update the page numbers to reflect what's written in the page footers, rather than seemingly working on an independent counter?
#Reset page number in outline
28 messages · Page 1 of 1 (latest)
?render
#outline()
= pre body 1
= pre body 2
#pagebreak()
#counter(page).update(())
= main body
#lorem(10)
Note: 1 more page ignored
ye exactly
ahaaaa
The weird thing is that it works in my local project...
Oh yeah because it has already been fixed but the website is probably still using an older version of the compiler.
oh that's interesting
i'm actually not using the website
hang on i might need to
update my local files
This is the pr
Yep a quick rebuild should do the trick
ok the page numbers are syncing after a rebuild
however other weird issues
this might be a me thing because it's working as expected later in the document but
but...
just messing about with it sorry
yeah so
next thing i think
is that
#outline() doesn't reflect changes in page numbering styles
so the outline is counting the page changes correctly but it isn't changing between e.g. 1 2 3 4 5 and i ii iii iv v
Well thats probably just a missing feature/edgecase
Yep it just always uses numbers: https://github.com/typst/typst/blob/main/library/src/meta/outline.rs#L162-L166
alright good stuff i'll mention it on github then!