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

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

body
The content to align.