Typst: hide footer page counter on some pages

Show page counter only from page 3 onwards:

#set page(
  [...]
  footer: locate((loc) => {
    if counter(page).at(loc).first() > 2 [
      #align(center,
        [#counter(page).display()],
      )
    ]
  })
)

Hide page counter on certain pages with a list:

    ...
    if counter(page).at(loc).first() not in (1, 2, 4, 7) [
    ...

Source: https://typst.app/docs/guides/page-setup-guide/#headers-and-footers

Created 2024-02-14T21:57:27+01:00, updated 2024-02-29T23:49:33+01:00 · History · Edit