How to get the page number when referencing?

The page’s numbering is none by default, so you need to either set it to something else via

#set page(numbering: "1")

or explicitly handle that case in the pageref function.

3 Likes