TypstDocumentation

length

A size or distance, possibly expressed with contextual units. Typst supports the following length units:

Example

#rect(width: 20pt)
#rect(width: 2em)
#rect(width: 1in)
Preview