align
Element
Element functions can be customized with set
and show
rules.
Element functions can be customized with
set
and show
rules.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
Parameters
Parameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
alignment
Positional
Positional parameters are specified in order, without names.
Settable
Settable parameters can be customized for all following uses of the function with a set
rule.
Positional parameters are specified in order, without names.
Settable parameters can be customized for all following uses of the function with a
set
rule.The alignment along both axes.
Default:start + top
View example
#set page(height: 6cm)
#set text(lang: "ar")
مثال
#align(
end + horizon,
rect(inset: 12pt)[ركن]
)
body
The content to align.