scale
元素
元素函数可以通过 set 和 show 规则进行样式自定义。
元素函数可以通过 set 和 show 规则进行样式自定义。
Scales content without affecting layout.
Lets you mirror content by specifying a negative scale on a single axis.
Example
#set align(center)
#scale(x: -100%)[This is mirrored.]

参数
参数是函数的输入,它们在函数名称后面的括号中传入。
参数是函数的输入,它们在函数名称后面的括号中传入。
x
The horizontal scaling factor.
The body will be mirrored horizontally if the parameter is negative.
默认:100%
y
The vertical scaling factor.
The body will be mirrored vertically if the parameter is negative.
默认:100%
origin
The origin of the transformation.
默认:center + horizon
查看示例
A#box(scale(75%)[A])A \
B#box(scale(75%, origin: bottom + left)[B])B

body
The content to scale.