Universe

Introduction

If you are frustrated by the new page run behavior, you may try this package to freeze a setsuna, i.e. style state snapshot at a specific moment, to fight against set and show added after the moment.

Usage

#setsuna.capture(apply => {
    apply({})
})

Use with ose-pic

// Captured, Header
#setsuna.capture(apply => {
  AddToShipoutBGAll({
    place(top + left, dy: -18mm, box(width: 100%, inset: 35mm, apply[
      #grid(
        columns: (1fr, auto),
        align: (left, right),
        gutter: 12pt,
        [setsuna captured header], [#context here().page()],
      )
    ]))
  })
})
// --- OR ---
// Not captured, Footer
#AddToShipoutBGAll({
  place(bottom + left, dy: 18mm, box(width: 100%, inset: 35mm, [
    #grid(
      columns: (1fr, auto),
      align: (left, right),
      gutter: 12pt,
      [raw footer], [#context here().page()],
    )
  ]))
})

Using with bare set page(background: {...}) or set page(foreground: {...}) should be similar.