circle
元素元素元素函数可用set
和show
规则自定义样式。
元素
元素函数可用
set
和show
规则自定义样式。A circle with optional content.
Example
// Without content.
#circle(radius: 25pt)
// With content.
#circle[
#set align(center + horizon)
Automatically \
sized to fit.
]

参数参数参数是传给函数的输入,写在函数名后的括号中。
参数
参数是传给函数的输入,写在函数名后的括号中。
radius
可用set规则可用set规则可用set
规则设置参数,更改后续调用时的默认值。
可用set规则
可用set规则
可用
set
规则设置参数,更改后续调用时的默认值。The circle's radius. This is mutually exclusive with width
and
height
.
默认值: 0pt
width
The circle's width. This is mutually exclusive with radius
and
height
.
In contrast to radius
, this can be relative to the parent container's
width.
默认值: auto
height
The circle's height. This is mutually exclusive with radius
and
width
.
In contrast to radius
, this can be relative to the parent container's
height.
默认值: auto
inset
可用set规则可用set规则可用set
规则设置参数,更改后续调用时的默认值。
可用set规则
可用set规则
可用
set
规则设置参数,更改后续调用时的默认值。How much to pad the circle's content. See the box's documentation for more details.
默认值: 5pt
outset
可用set规则可用set规则可用set
规则设置参数,更改后续调用时的默认值。
可用set规则
可用set规则
可用
set
规则设置参数,更改后续调用时的默认值。How much to expand the circle's size without affecting the layout. See the box's documentation for more details.
默认值: 0pt