Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

Layout

Arranging elements on the page in different ways.

By combining layout functions, you can create complex and automatic layouts.

Definition

  • Aligns content horizontally and vertically.
  • Where to align something along an axis.
  • An angle describing a rotation.
  • A block-level container.
  • An inline-level container that sizes content.
  • Forces a column break.
  • Separates a region into multiple equally sized columns.
  • The four directions into which content can be laid out.
  • Defines how the remaining space in a layout is distributed.
  • Arranges content in a grid.
  • Inserts horizontal spacing into a paragraph.
  • Hides content without affecting layout.
  • Provides access to the current outer container's (or page's, if none) dimensions (width and height).
  • A size or distance, possibly expressed with contextual units.
  • Measures the layouted size of content.
  • Moves content without affecting layout.
  • Adds spacing around content.
  • Layouts its child onto one or multiple pages.
  • A manual page break.
  • Places content relatively to its parent container.
  • A ratio of a whole.
  • A length in relation to some known length.
  • Repeats content to the available space.
  • Rotates content without affecting layout.
  • Scales content without affecting layout.
  • Skews content.
  • Arranges content and spacing horizontally or vertically.
  • Inserts vertical spacing into a flow of blocks.
Open official docs

Search