TypstDocumentation

alignElement
Question mark

Aligns content horizontally and vertically.

Example

#set align(center)

Centered text, a sight to see \
In perfect balance, visually \
Not left nor right, it stands alone \
A work of art, a visual throne
Preview

Parameters
Question mark

alignment
alignment
Positional
Question mark
Settable
Question mark

The alignment along both axes.

Default: start + top

View example
#set page(height: 6cm)
#set text(lang: "ar")

مثال
#align(
  end + horizon,
  rect(inset: 12pt)[ركن]
)
Preview

body
content
RequiredPositional
Question mark

The content to align.