Layout
Documentation for functions related to Layout in Typst.
Arranging elements on the page in different ways.
By combining layout functions, you can create complex and automatic layouts.
Definitions
| Name | Description | |
|---|---|---|
| — | align | Aligns content horizontally and vertically. |
| — | alignment | Where to align something along an axis. |
| — | angle | An angle describing a rotation. |
| — | block | A block-level container. |
| — | box | An inline-level container that sizes content. |
| — | colbreak | Forces a column break. |
| — | columns | Separates a region into multiple equally sized columns. |
| — | direction | The four directions into which content can be laid out. |
| — | fraction | Defines how the remaining space in a layout is distributed. |
| — | grid | Arranges content in a grid. |
| — | h | Inserts horizontal spacing into a paragraph. |
| — | hide | Hides content without affecting layout. |
| — | layout | Provides access to the current outer container's (or page's, if none) dimensions (width and height). |
| — | length | A size or distance, possibly expressed with contextual units. |
| — | measure | Measures the layouted size of content. |
| — | move | Moves content without affecting layout. |
| — | pad | Adds spacing around content. |
| — | page | Layouts its child onto one or multiple pages. |
| — | pagebreak | A manual page break. |
| — | place | Places content relatively to its parent container. |
| — | ratio | A ratio of a whole. |
| — | relative | A length in relation to some known length. |
| — | repeat | Repeats content to the available space. |
| — | rotate | Rotates content without affecting layout. |
| — | scale | Scales content without affecting layout. |
| — | skew | Skews content. |
| — | stack | Arranges content and spacing horizontally or vertically. |
| — | v | Inserts vertical spacing into a flow of blocks. |