Page
Documentation for the `page` function.
Layouts its child onto one or multiple pages.
Although this function is primarily used in set rules to affect page properties, it can also be used to explicitly render its argument onto a set of pages of its own.
Pages can be set to use auto as their width or height. In this case, the pages will grow to fit their content on the respective axis.
The Guide for Page Setup explains how to use this and related functions to set up a document with many examples.
Example
Accessibility
The contents of the page's header, footer, foreground, and background are invisible to Assistive Technology (AT) like screen readers. Only the body of the page is read by AT. Do not include vital information not included elsewhere in the document in these areas.
Styling
Note that the page element cannot be targeted by show rules; writing show page: .. has no effect. To repeat content on every page, you can instead configure the header, footer, background, and foreground properties with a set rule.
#page(
paper: str,
width: auto | length,
height: auto | length,
flipped: bool,
margin: auto | relative | dictionary,
binding: auto | alignment,
columns: int,
fill: none | auto | color | gradient | tiling,
numbering: none | str | function,
supplement: none | auto | content,
number-align: alignment,
header: none | auto | content,
header-ascent: relative,
footer: none | auto | content,
footer-descent: relative,
background: none | content,
foreground: none | content,
body: content
) -> contentParameters
Prop
Type