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可用set规则可用set规则可用set规则设置参数,更改后续调用时的默认值。
可用set规则
可用set规则
可用
set规则设置参数,更改后续调用时的默认值。The horizontal scaling factor.
The body will be mirrored horizontally if the parameter is negative.
默认值: 100%
y可用set规则可用set规则可用set规则设置参数,更改后续调用时的默认值。
可用set规则
可用set规则
可用
set规则设置参数,更改后续调用时的默认值。The vertical scaling factor.
The body will be mirrored vertically if the parameter is negative.
默认值: 100%
origin可用set规则可用set规则可用set规则设置参数,更改后续调用时的默认值。
可用set规则
可用set规则
可用
set规则设置参数,更改后续调用时的默认值。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.