{"route":"/en-US-v0.13.1/reference/layout/page/","title":"Page","description":"Documentation for the `page` function.","part":null,"outline":[{"id":"summary","name":"Summary","children":[]},{"id":"example","name":"Example","children":[]},{"id":"parameters","name":"Parameters","children":[{"id":"parameters-paper","name":"paper","children":[]},{"id":"parameters-width","name":"width","children":[]},{"id":"parameters-height","name":"height","children":[]},{"id":"parameters-flipped","name":"flipped","children":[]},{"id":"parameters-margin","name":"margin","children":[]},{"id":"parameters-binding","name":"binding","children":[]},{"id":"parameters-columns","name":"columns","children":[]},{"id":"parameters-fill","name":"fill","children":[]},{"id":"parameters-numbering","name":"numbering","children":[]},{"id":"parameters-supplement","name":"supplement","children":[]},{"id":"parameters-number-align","name":"number-align","children":[]},{"id":"parameters-header","name":"header","children":[]},{"id":"parameters-header-ascent","name":"header-ascent","children":[]},{"id":"parameters-footer","name":"footer","children":[]},{"id":"parameters-footer-descent","name":"footer-descent","children":[]},{"id":"parameters-background","name":"background","children":[]},{"id":"parameters-foreground","name":"foreground","children":[]},{"id":"parameters-body","name":"body","children":[]}]}],"body":{"kind":"func","content":{"path":[],"name":"page","title":"Page","keywords":[],"oneliner":"Layouts its child onto one or multiple pages.","element":true,"contextual":false,"deprecation":null,"details":"<p>Layouts its child onto one or multiple pages.</p>\n<p>Although this function is primarily used in set rules to affect page\nproperties, it can also be used to explicitly render its argument onto\na set of pages of its own.</p>\n<p>Pages can be set to use <code><span class=\"typ-key\">auto</span></code> as their width or height. In this case, the\npages will grow to fit their content on the respective axis.</p>\n<p>The <a href=\"/en-US-v0.13.1/guides/page-setup-guide/\">Guide for Page Setup</a> explains how to use\nthis and related functions to set up a document with many examples.</p>\n<h2 id=\"example\">Example</h2>\n<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span><span class=\"typ-str\">&quot;us-letter&quot;</span><span class=\"typ-punct\">)</span>\n\nThere you go, US friends!\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/1ac9f7bf119f609244d0315ae70eada1.png\" alt=\"Preview\"></div></div>","example":null,"self":false,"params":[{"name":"paper","details":"<p>A standard paper size to set width and height.</p>\n<p>This is just a shorthand for setting <code>width</code> and <code>height</code> and, as such,\ncannot be retrieved in a context expression.</p>","example":null,"types":["str"],"strings":[{"string":"a0","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a1","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a2","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a7","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a8","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a9","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a10","details":"<p>Produces a paper of the respective size.</p>"},{"string":"a11","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b1","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b2","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b7","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-b8","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-c3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-c4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-c5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-c6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-c7","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-c8","details":"<p>Produces a paper of the respective size.</p>"},{"string":"din-d3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"din-d4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"din-d5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"din-d6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"din-d7","details":"<p>Produces a paper of the respective size.</p>"},{"string":"din-d8","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sis-g5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sis-e5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"ansi-a","details":"<p>Produces a paper of the respective size.</p>"},{"string":"ansi-b","details":"<p>Produces a paper of the respective size.</p>"},{"string":"ansi-c","details":"<p>Produces a paper of the respective size.</p>"},{"string":"ansi-d","details":"<p>Produces a paper of the respective size.</p>"},{"string":"ansi-e","details":"<p>Produces a paper of the respective size.</p>"},{"string":"arch-a","details":"<p>Produces a paper of the respective size.</p>"},{"string":"arch-b","details":"<p>Produces a paper of the respective size.</p>"},{"string":"arch-c","details":"<p>Produces a paper of the respective size.</p>"},{"string":"arch-d","details":"<p>Produces a paper of the respective size.</p>"},{"string":"arch-e1","details":"<p>Produces a paper of the respective size.</p>"},{"string":"arch-e","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b0","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b1","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b2","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b7","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b8","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b9","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b10","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jis-b11","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d0","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d1","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d2","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"sac-d6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-id-1","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-id-2","details":"<p>Produces a paper of the respective size.</p>"},{"string":"iso-id-3","details":"<p>Produces a paper of the respective size.</p>"},{"string":"asia-f4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jp-shiroku-ban-4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jp-shiroku-ban-5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jp-shiroku-ban-6","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jp-kiku-4","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jp-kiku-5","details":"<p>Produces a paper of the respective size.</p>"},{"string":"jp-business-card","details":"<p>Produces a paper of the respective size.</p>"},{"string":"cn-business-card","details":"<p>Produces a paper of the respective size.</p>"},{"string":"eu-business-card","details":"<p>Produces a paper of the respective size.</p>"},{"string":"fr-tellière","details":"<p>Produces a paper of the respective size.</p>"},{"string":"fr-couronne-écriture","details":"<p>Produces a paper of the respective size.</p>"},{"string":"fr-couronne-édition","details":"<p>Produces a paper of the respective size.</p>"},{"string":"fr-raisin","details":"<p>Produces a paper of the respective size.</p>"},{"string":"fr-carré","details":"<p>Produces a paper of the respective size.</p>"},{"string":"fr-jésus","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-brief","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-draft","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-foolscap","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-quarto","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-crown","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-book-a","details":"<p>Produces a paper of the respective size.</p>"},{"string":"uk-book-b","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-letter","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-legal","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-tabloid","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-executive","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-foolscap-folio","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-statement","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-ledger","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-oficio","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-gov-letter","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-gov-legal","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-business-card","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-digest","details":"<p>Produces a paper of the respective size.</p>"},{"string":"us-trade","details":"<p>Produces a paper of the respective size.</p>"},{"string":"newspaper-compact","details":"<p>Produces a paper of the respective size.</p>"},{"string":"newspaper-berliner","details":"<p>Produces a paper of the respective size.</p>"},{"string":"newspaper-broadsheet","details":"<p>Produces a paper of the respective size.</p>"},{"string":"presentation-16-9","details":"<p>Produces a paper of the respective size.</p>"},{"string":"presentation-4-3","details":"<p>Produces a paper of the respective size.</p>"}],"default":"<code><span class=\"typ-str\">&quot;a4&quot;</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"width","details":"<p>The width of the page.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n  width<span class=\"typ-punct\">:</span> <span class=\"typ-num\">3cm</span><span class=\"typ-punct\">,</span>\n  margin<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">(</span>x<span class=\"typ-punct\">:</span> <span class=\"typ-num\">0cm</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-key\">#</span><span class=\"typ-key\">for</span> i <span class=\"typ-key\">in</span> <span class=\"typ-func\">range</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">3</span><span class=\"typ-punct\">)</span> <span class=\"typ-punct\">{</span>\n  <span class=\"typ-func\">box</span><span class=\"typ-punct\">(</span><span class=\"typ-func\">square</span><span class=\"typ-punct\">(</span>width<span class=\"typ-punct\">:</span> <span class=\"typ-num\">1cm</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">)</span>\n<span class=\"typ-punct\">}</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/c5c0cb479bae932e5a12726ba0fdc97d.png\" alt=\"Preview\"></div></div>","types":["auto","length"],"strings":[],"default":"<code><span class=\"typ-num\">595.28pt</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"height","details":"<p>The height of the page.</p>\n<p>If this is set to <code><span class=\"typ-key\">auto</span></code>, page breaks can only be triggered manually\nby inserting a <a href=\"/en-US-v0.13.1/reference/layout/pagebreak/\">page break</a>. Most examples throughout this\ndocumentation use <code><span class=\"typ-key\">auto</span></code> for the height of the page to dynamically\ngrow and shrink to fit their content.</p>","example":null,"types":["auto","length"],"strings":[],"default":"<code><span class=\"typ-num\">841.89pt</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"flipped","details":"<p>Whether the page is flipped into landscape orientation.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n  <span class=\"typ-str\">&quot;us-business-card&quot;</span><span class=\"typ-punct\">,</span>\n  flipped<span class=\"typ-punct\">:</span> <span class=\"typ-key\">true</span><span class=\"typ-punct\">,</span>\n  fill<span class=\"typ-punct\">:</span> <span class=\"typ-func\">rgb</span><span class=\"typ-punct\">(</span><span class=\"typ-str\">&quot;f2e5dd&quot;</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">align</span><span class=\"typ-punct\">(</span>bottom <span class=\"typ-op\">+</span> end<span class=\"typ-punct\">)</span>\n<span class=\"typ-func\">#</span><span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">14pt</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">[</span><span class=\"typ-strong\">*Sam H. Richards*</span><span class=\"typ-punct\">]</span> <span class=\"typ-escape\">\\</span>\n<span class=\"typ-emph\">_Procurement Manager_</span>\n\n<span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">10pt</span><span class=\"typ-punct\">)</span>\n17 Main Street <span class=\"typ-escape\">\\</span>\nNew York, NY 10001 <span class=\"typ-escape\">\\</span>\n+1 555 555 5555\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/3443cc2c62d432e0b05c7641ea2bb708.png\" alt=\"Preview\"></div></div>","types":["bool"],"strings":[],"default":"<code><span class=\"typ-key\">false</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"margin","details":"<p>The page's margins.</p>\n<ul>\n<li><code><span class=\"typ-key\">auto</span></code>: The margins are set automatically to 2.5/21 times the smaller\ndimension of the page. This results in 2.5cm margins for an A4 page.</li>\n<li>A single length: The same margin on all sides.</li>\n<li>A dictionary: With a dictionary, the margins can be set individually.\nThe dictionary can contain the following keys in order of precedence:\n<ul>\n<li><code>top</code>: The top margin.</li>\n<li><code>right</code>: The right margin.</li>\n<li><code>bottom</code>: The bottom margin.</li>\n<li><code>left</code>: The left margin.</li>\n<li><code>inside</code>: The margin at the inner side of the page (where the\n<a href=\"/en-US-v0.13.1/reference/layout/page/#parameters-binding\">binding</a> is).</li>\n<li><code>outside</code>: The margin at the outer side of the page (opposite to the\n<a href=\"/en-US-v0.13.1/reference/layout/page/#parameters-binding\">binding</a>).</li>\n<li><code>x</code>: The horizontal margins.</li>\n<li><code>y</code>: The vertical margins.</li>\n<li><code>rest</code>: The margins on all sides except those for which the\ndictionary explicitly sets a size.</li>\n</ul>\n</li>\n</ul>\n<p>The values for <code>left</code> and <code>right</code> are mutually exclusive with\nthe values for <code>inside</code> and <code>outside</code>.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n width<span class=\"typ-punct\">:</span> <span class=\"typ-num\">3cm</span><span class=\"typ-punct\">,</span>\n height<span class=\"typ-punct\">:</span> <span class=\"typ-num\">4cm</span><span class=\"typ-punct\">,</span>\n margin<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">(</span>x<span class=\"typ-punct\">:</span> <span class=\"typ-num\">8pt</span><span class=\"typ-punct\">,</span> y<span class=\"typ-punct\">:</span> <span class=\"typ-num\">4pt</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-func\">#</span><span class=\"typ-func\">rect</span><span class=\"typ-punct\">(</span>\n  width<span class=\"typ-punct\">:</span> <span class=\"typ-num\">100%</span><span class=\"typ-punct\">,</span>\n  height<span class=\"typ-punct\">:</span> <span class=\"typ-num\">100%</span><span class=\"typ-punct\">,</span>\n  fill<span class=\"typ-punct\">:</span> aqua<span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/38cab24c8c7bc83c32353d035059e214.png\" alt=\"Preview\"></div></div>","types":["auto","relative","dictionary"],"strings":[],"default":"<code><span class=\"typ-key\">auto</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"binding","details":"<p>On which side the pages will be bound.</p>\n<ul>\n<li><code><span class=\"typ-key\">auto</span></code>: Equivalent to <code>left</code> if the <a href=\"/en-US-v0.13.1/reference/text/text/#parameters-dir\">text direction</a>\nis left-to-right and <code>right</code> if it is right-to-left.</li>\n<li><code>left</code>: Bound on the left side.</li>\n<li><code>right</code>: Bound on the right side.</li>\n</ul>\n<p>This affects the meaning of the <code>inside</code> and <code>outside</code> options for\nmargins.</p>","example":null,"types":["auto","alignment"],"strings":[],"default":"<code><span class=\"typ-key\">auto</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"columns","details":"<p>How many columns the page has.</p>\n<p>If you need to insert columns into a page or other container, you can\nalso use the <a href=\"/en-US-v0.13.1/reference/layout/columns/\"><code>columns</code> function</a>.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>columns<span class=\"typ-punct\">:</span> <span class=\"typ-num\">2</span><span class=\"typ-punct\">,</span> height<span class=\"typ-punct\">:</span> <span class=\"typ-num\">4.8cm</span><span class=\"typ-punct\">)</span>\nClimate change is one of the most\npressing issues of our time, with\nthe potential to devastate\ncommunities, ecosystems, and\neconomies around the world. It&#39;s\nclear that we need to take urgent\naction to reduce our carbon\nemissions and mitigate the impacts\nof a rapidly changing climate.\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/41e9bf3601743b2a7f2d8f0945514159.png\" alt=\"Preview\"></div></div>","types":["int"],"strings":[],"default":"<code><span class=\"typ-num\">1</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"fill","details":"<p>The page's background fill.</p>\n<p>Setting this to something non-transparent instructs the printer to color\nthe complete page. If you are considering larger production runs, it may\nbe more environmentally friendly and cost-effective to source pre-dyed\npages and not set this property.</p>\n<p>When set to <code><span class=\"typ-key\">none</span></code>, the background becomes transparent. Note that PDF\npages will still appear with a (usually white) background in viewers,\nbut they are actually transparent. (If you print them, no color is used\nfor the background.)</p>\n<p>The default of <code><span class=\"typ-key\">auto</span></code> results in <code><span class=\"typ-key\">none</span></code> for PDF output, and\n<code>white</code> for PNG and SVG.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>fill<span class=\"typ-punct\">:</span> <span class=\"typ-func\">rgb</span><span class=\"typ-punct\">(</span><span class=\"typ-str\">&quot;444352&quot;</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">)</span>\n<span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span>fill<span class=\"typ-punct\">:</span> <span class=\"typ-func\">rgb</span><span class=\"typ-punct\">(</span><span class=\"typ-str\">&quot;fdfdfd&quot;</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">)</span>\n<span class=\"typ-strong\">*Dark mode enabled.*</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/3cb12cf6356d48cdc5c6ca004dae9200.png\" alt=\"Preview\"></div></div>","types":["none","auto","color","gradient","tiling"],"strings":[],"default":"<code><span class=\"typ-key\">auto</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"numbering","details":"<p>How to <a href=\"/en-US-v0.13.1/reference/model/numbering/\">number</a> the pages.</p>\n<p>If an explicit <code>footer</code> (or <code>header</code> for top-aligned numbering) is\ngiven, the numbering is ignored.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n  height<span class=\"typ-punct\">:</span> <span class=\"typ-num\">100pt</span><span class=\"typ-punct\">,</span>\n  margin<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">(</span>top<span class=\"typ-punct\">:</span> <span class=\"typ-num\">16pt</span><span class=\"typ-punct\">,</span> bottom<span class=\"typ-punct\">:</span> <span class=\"typ-num\">24pt</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">,</span>\n  numbering<span class=\"typ-punct\">:</span> <span class=\"typ-str\">&quot;1 / 1&quot;</span><span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-func\">#</span><span class=\"typ-func\">lorem</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">48</span><span class=\"typ-punct\">)</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/458f1ff4e33685bdecfd0ded4b77d583.png\" alt=\"Preview\"></div></div>","types":["none","str","function"],"strings":[],"default":"<code><span class=\"typ-key\">none</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"supplement","details":"<p>A supplement for the pages.</p>\n<p>For page references, this is added before the page number.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>numbering<span class=\"typ-punct\">:</span> <span class=\"typ-str\">&quot;1.&quot;</span><span class=\"typ-punct\">,</span> supplement<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">[</span>p.<span class=\"typ-punct\">]</span><span class=\"typ-punct\">)</span>\n\n<span class=\"typ-heading\">= Introduction</span> <span class=\"typ-label\">&lt;intro&gt;</span>\nWe are on <span class=\"typ-func\">#</span><span class=\"typ-func\">ref</span><span class=\"typ-punct\">(</span><span class=\"typ-label\">&lt;intro&gt;</span><span class=\"typ-punct\">,</span> form<span class=\"typ-punct\">:</span> <span class=\"typ-str\">&quot;page&quot;</span><span class=\"typ-punct\">)</span>!\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/c75fa03fff6bfa8d16ee76ca5b278cbe.png\" alt=\"Preview\"></div></div>","types":["none","auto","content"],"strings":[],"default":"<code><span class=\"typ-key\">auto</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"number-align","details":"<p>The alignment of the page numbering.</p>\n<p>If the vertical component is <code>top</code>, the numbering is placed into the\nheader and if it is <code>bottom</code>, it is placed in the footer. Horizon\nalignment is forbidden. If an explicit matching <code>header</code> or <code>footer</code> is\ngiven, the numbering is ignored.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n  margin<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">(</span>top<span class=\"typ-punct\">:</span> <span class=\"typ-num\">16pt</span><span class=\"typ-punct\">,</span> bottom<span class=\"typ-punct\">:</span> <span class=\"typ-num\">24pt</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">,</span>\n  numbering<span class=\"typ-punct\">:</span> <span class=\"typ-str\">&quot;1&quot;</span><span class=\"typ-punct\">,</span>\n  number-align<span class=\"typ-punct\">:</span> right<span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-func\">#</span><span class=\"typ-func\">lorem</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">30</span><span class=\"typ-punct\">)</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/12bbe38d48e502ec6a76dce9bada9640.png\" alt=\"Preview\"></div></div>","types":["alignment"],"strings":[],"default":"<code>center <span class=\"typ-op\">+</span> bottom</code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"header","details":"<p>The page's header. Fills the top margin of each page.</p>\n<ul>\n<li>Content: Shows the content as the header.</li>\n<li><code><span class=\"typ-key\">auto</span></code>: Shows the page number if a <code>numbering</code> is set and\n<code>number-align</code> is <code>top</code>.</li>\n<li><code><span class=\"typ-key\">none</span></code>: Suppresses the header.</li>\n</ul>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">par</span><span class=\"typ-punct\">(</span>justify<span class=\"typ-punct\">:</span> <span class=\"typ-key\">true</span><span class=\"typ-punct\">)</span>\n<span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n  margin<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">(</span>top<span class=\"typ-punct\">:</span> <span class=\"typ-num\">32pt</span><span class=\"typ-punct\">,</span> bottom<span class=\"typ-punct\">:</span> <span class=\"typ-num\">20pt</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">,</span>\n  header<span class=\"typ-punct\">:</span> <span class=\"typ-punct\">[</span>\n    <span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">8pt</span><span class=\"typ-punct\">)</span>\n    <span class=\"typ-func\">#</span><span class=\"typ-func\">smallcaps</span><span class=\"typ-punct\">[</span>Typst Academy<span class=\"typ-punct\">]</span>\n    <span class=\"typ-func\">#</span><span class=\"typ-func\">h</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">1fr</span><span class=\"typ-punct\">)</span> <span class=\"typ-emph\">_Exercise Sheet 3_</span>\n  <span class=\"typ-punct\">]</span><span class=\"typ-punct\">,</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-func\">#</span><span class=\"typ-func\">lorem</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">19</span><span class=\"typ-punct\">)</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/b18fb365dc45c64d948757c6cca11852.png\" alt=\"Preview\"></div></div>","types":["none","auto","content"],"strings":[],"default":"<code><span class=\"typ-key\">auto</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"header-ascent","details":"<p>The amount the header is raised into the top margin.</p>","example":null,"types":["relative"],"strings":[],"default":"<code><span class=\"typ-num\">30%</span> <span class=\"typ-op\">+</span> <span class=\"typ-num\">0pt</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"footer","details":"<p>The page's footer. Fills the bottom margin of each page.</p>\n<ul>\n<li>Content: Shows the content as the footer.</li>\n<li><code><span class=\"typ-key\">auto</span></code>: Shows the page number if a <code>numbering</code> is set and\n<code>number-align</code> is <code>bottom</code>.</li>\n<li><code><span class=\"typ-key\">none</span></code>: Suppresses the footer.</li>\n</ul>\n<p>For just a page number, the <code>numbering</code> property typically suffices. If\nyou want to create a custom footer but still display the page number,\nyou can directly access the <a href=\"/en-US-v0.13.1/reference/introspection/counter/\">page counter</a>.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">par</span><span class=\"typ-punct\">(</span>justify<span class=\"typ-punct\">:</span> <span class=\"typ-key\">true</span><span class=\"typ-punct\">)</span>\n<span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>\n  height<span class=\"typ-punct\">:</span> <span class=\"typ-num\">100pt</span><span class=\"typ-punct\">,</span>\n  margin<span class=\"typ-punct\">:</span> <span class=\"typ-num\">20pt</span><span class=\"typ-punct\">,</span>\n  footer<span class=\"typ-punct\">:</span> <span class=\"typ-key\">context</span> <span class=\"typ-punct\">[</span>\n    <span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">align</span><span class=\"typ-punct\">(</span>right<span class=\"typ-punct\">)</span>\n    <span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">8pt</span><span class=\"typ-punct\">)</span>\n    <span class=\"typ-func\">#</span><span class=\"typ-func\">counter</span><span class=\"typ-punct\">(</span>page<span class=\"typ-punct\">)</span><span class=\"typ-punct\">.</span><span class=\"typ-func\">display</span><span class=\"typ-punct\">(</span>\n      <span class=\"typ-str\">&quot;1 of I&quot;</span><span class=\"typ-punct\">,</span>\n      both<span class=\"typ-punct\">:</span> <span class=\"typ-key\">true</span><span class=\"typ-punct\">,</span>\n    <span class=\"typ-punct\">)</span>\n  <span class=\"typ-punct\">]</span>\n<span class=\"typ-punct\">)</span>\n\n<span class=\"typ-func\">#</span><span class=\"typ-func\">lorem</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">48</span><span class=\"typ-punct\">)</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/18ae21d9e7d7e037a98c61a2523cde8d.png\" alt=\"Preview\"></div></div>","types":["none","auto","content"],"strings":[],"default":"<code><span class=\"typ-key\">auto</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"footer-descent","details":"<p>The amount the footer is lowered into the bottom margin.</p>","example":null,"types":["relative"],"strings":[],"default":"<code><span class=\"typ-num\">30%</span> <span class=\"typ-op\">+</span> <span class=\"typ-num\">0pt</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"background","details":"<p>Content in the page's background.</p>\n<p>This content will be placed behind the page's body. It can be\nused to place a background image or a watermark.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>background<span class=\"typ-punct\">:</span> <span class=\"typ-func\">rotate</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">24deg</span><span class=\"typ-punct\">,</span>\n  <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">18pt</span><span class=\"typ-punct\">,</span> fill<span class=\"typ-punct\">:</span> <span class=\"typ-func\">rgb</span><span class=\"typ-punct\">(</span><span class=\"typ-str\">&quot;FFCBC4&quot;</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">[</span>\n    <span class=\"typ-strong\">*CONFIDENTIAL*</span>\n  <span class=\"typ-punct\">]</span>\n<span class=\"typ-punct\">)</span><span class=\"typ-punct\">)</span>\n\n<span class=\"typ-heading\">= Typst&#39;s secret plans</span>\nIn the year 2023, we plan to take\nover the world (of typesetting).\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/79d32183be70b3e18882ae4824d25bad.png\" alt=\"Preview\"></div></div>","types":["none","content"],"strings":[],"default":"<code><span class=\"typ-key\">none</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"foreground","details":"<p>Content in the page's foreground.</p>\n<p>This content will overlay the page's body.</p>","example":"<div class=\"previewed-code\"><pre><code><span class=\"typ-key\">#</span><span class=\"typ-key\">set</span> <span class=\"typ-func\">page</span><span class=\"typ-punct\">(</span>foreground<span class=\"typ-punct\">:</span> <span class=\"typ-func\">text</span><span class=\"typ-punct\">(</span><span class=\"typ-num\">24pt</span><span class=\"typ-punct\">)</span><span class=\"typ-punct\">[</span>🥸<span class=\"typ-punct\">]</span><span class=\"typ-punct\">)</span>\n\nReviewer 2 has marked our paper\n&quot;Weak Reject&quot; because they did\nnot understand our approach<span class=\"typ-escape\">...</span>\n</code></pre><div class=\"preview\"><img src=\"/en-US-v0.13.1/assets/5310764e3bb4ce0e2787ce6130564d3b.png\" alt=\"Preview\"></div></div>","types":["none","content"],"strings":[],"default":"<code><span class=\"typ-key\">none</span></code>","positional":false,"named":true,"required":false,"variadic":false,"settable":true},{"name":"body","details":"<p>The contents of the page(s).</p>\n<p>Multiple pages will be created if the content does not fit on a single\npage. A new page with the page properties prior to the function invocation\nwill be created after the body has been typeset.</p>","example":null,"types":["content"],"strings":[],"default":null,"positional":true,"named":false,"required":true,"variadic":false,"settable":false}],"returns":["content"],"scope":[]}}}