Typst Fumadocs

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

NameDescription
alignAligns content horizontally and vertically.
alignmentWhere to align something along an axis.
angleAn angle describing a rotation.
blockA block-level container.
boxAn inline-level container that sizes content.
colbreakForces a column break.
columnsSeparates a region into multiple equally sized columns.
directionThe four directions into which content can be laid out.
fractionDefines how the remaining space in a layout is distributed.
gridArranges content in a grid.
hInserts horizontal spacing into a paragraph.
hideHides content without affecting layout.
layoutProvides access to the current outer container's (or page's, if none) dimensions (width and height).
lengthA size or distance, possibly expressed with contextual units.
measureMeasures the layouted size of content.
moveMoves content without affecting layout.
padAdds spacing around content.
pageLayouts its child onto one or multiple pages.
pagebreakA manual page break.
placePlaces content relatively to its parent container.
ratioA ratio of a whole.
relativeA length in relation to some known length.
repeatRepeats content to the available space.
rotateRotates content without affecting layout.
scaleScales content without affecting layout.
skewSkews content.
stackArranges content and spacing horizontally or vertically.
vInserts vertical spacing into a flow of blocks.

On this page