align元素元素元素函数可用set和show规则自定义样式。
元素
元素函数可用
set和show规则自定义样式。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

参数参数参数是传给函数的输入,写在函数名后的括号中。
参数
参数是传给函数的输入,写在函数名后的括号中。
align(,)->alignment
alignmentThe alignment along both axes.
展开例子
#set page(height: 6cm)
#set text(lang: "ar")
مثال
#align(
end + horizon,
rect(inset: 12pt)[ركن]
)

默认值:start + top
body
bodyThe content to align.