Not showing page number at specified page numbers #4069
-
I would like to create a show rule that does not show the page number when page number is equal to 1. Could you please help me? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
EpicEricEE
May 5, 2024
Replies: 2 comments
-
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)
}
})
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
psads-git
-
Thanks a lot, @EpicEricEE: that works perfectly! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: