#Reset page number in outline

28 messages · Page 1 of 1 (latest)

thorn galleon
#

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?

lone forge
#

?render

#outline()
= pre body 1
= pre body 2
#pagebreak()

#counter(page).update(())
= main body
#lorem(10)
strange valleyBOT
thorn galleon
#

ye exactly

lone forge
thorn galleon
#

ahaaaa

lone forge
#

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.

thorn galleon
#

oh that's interesting

#

i'm actually not using the website

#

hang on i might need to

#

update my local files

lone forge
#

This is the pr

#

Yep a quick rebuild should do the trick

thorn galleon
#

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

lone forge
#

but...

thorn galleon
#

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

lone forge
#

Well thats probably just a missing feature/edgecase

thorn galleon
#

alright good stuff i'll mention it on github then!