Skip to content

Not showing page number at specified page numbers #4069

Answered by EpicEricEE
psads-git asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think you can do this with a show-rule, but you certainly can with a set-rule.

When you're inside a context block, you can check the current page number and only show it if it's bigger than one:

#set page(
  footer: context align(center, {
    if counter(page).get().first() > 1 {
      let page-numbering = page.numbering
      if page-numbering == none { page-numbering = "1" }
      counter(page).display(page-numbering)
    }
  })
)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by psads-git
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants