79508069

Date: 2025-03-14 03:20:23
Score: 1
Natty:
Report link

The page function has two parameters: header and footer. You can customize them by these two parameters.

A simple example is:

#set page(
  margin: (top: 40pt, bottom: 40pt),
  header: [
    #rect(
      fill: yellow,
      width: 100%,
      height: 100%
    )[
      Header in yellow block
    ]
  ],
  footer: [
    #rect(
      fill: red,
      width: 100%,
      height: 100%
    )[
      Footer in red block
    ]
  ]
)

#lorem(1000)

Rendered result of example

Here is the example in web app: https://typst.app/docs/reference/layout/page/#parameters-footer

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Campbell He