Skip to content

set page inside context appends empty page #2326

@EpicEricEE

Description

@EpicEricEE

Description

I'm trying to adjust the page margin depending on the maximum heading numbering width, so I need to use #set page inside locate.

#set page(numbering: "1", width: 6cm, height: 2.5cm, margin: 2em)

First Page

#locate(loc => [
  #set page(numbering: "i")
  Second Page

  Third Page
])

image

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstylingAbout set and show rules or style properties

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions