Myriad-Dreamin / shiroa

shiroa is a simple tool for creating modern online books in pure typst.
https://myriad-dreamin.github.io/shiroa/
Apache License 2.0
204 stars 17 forks source link

Is it possible to have a counter across pages? #68

Open duskmoon314 opened 1 month ago

duskmoon314 commented 1 month ago

I want the number of images and equations automatically increased across pages (or chapters). Is this possible, and how can we achieve it?

Myriad-Dreamin commented 1 month ago

It is possible, as the entire structure is in book.typ which you can visit it. but it should be very hard, as each page is an individual document so you should reset the counter at the start of each page files.

Myriad-Dreamin commented 1 month ago

I didn't consider it, I'll take it into consideration when I rework on the book package, which was made in ancient typst (for about v0.6.0 :)).