ellipse
元素元素元素函数可用set
和show
规则自定义样式。
元素
元素函数可用
set
和show
规则自定义样式。An ellipse with optional content.
Example
// Without content.
#ellipse(width: 35%, height: 30pt)
// With content.
#ellipse[
#set align(center)
Automatically sized \
to fit the content.
]

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