Skip to content
Discussion options

You must be logged in to vote

I have found another way without using states or labels at all, producing an empty page before starting a new level 1 heading:

#let headings-on-odd-page(it) = {
  show heading.where(level: 1): it => {
    {
      set page(header: none, numbering: none)
      pagebreak(to: "odd")
    }
    it
  }
  it
}

#show heading.where(level: 1): it => // do your normal header styling here
#show: headings-on-odd-page

This works, because we restrict the scope of set page(header: none, numbering: none) to the scope inside the headings-on-odd-page show rule. Applying the show rule inside headings-on-odd-page will produce a header on an odd page, which is then matched by the show rule right before it (whe…

Replies: 5 comments 22 replies

Comment options

You must be logged in to vote
1 reply
@RAnders00
Comment options

Comment options

You must be logged in to vote
3 replies
@janekfleper
Comment options

@GamerBene19
Comment options

@janekfleper
Comment options

Comment options

You must be logged in to vote
9 replies
@julianmueller
Comment options

@janekfleper
Comment options

@julianmueller
Comment options

@janekfleper
Comment options

@julianmueller
Comment options

Comment options

You must be logged in to vote
4 replies
@janekfleper
Comment options

@jhalmen
Comment options

@maucejo
Comment options

@eduardz1
Comment options

Comment options

You must be logged in to vote
5 replies
@eduardz1
Comment options

@Ddystopia
Comment options

@Splines
Comment options

@lrsvmb
Comment options

@Splines
Comment options

Answer selected by RAnders00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet