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.
]
参数
参数是函数的输入,它们在函数名称后面的括号中传入。
参数是函数的输入,它们在函数名称后面的括号中传入。
ellipse(
width: autorelative, height: autorelative, fill: nonecolorgradientpattern, stroke: noneautolengthcolorgradientstrokepatterndictionary, inset: relativedictionary, outset: relativedictionary, nonecontent,
) -> contentwidth
The ellipse's width, relative to its parent container.
默认:auto
height
The ellipse's height, relative to its parent container.
默认:auto
fill
How to fill the ellipse. See the rectangle's documentation for more details.
默认:none
stroke
How to stroke the ellipse. See the rectangle's documentation for more details.
默认:auto
inset
How much to pad the ellipse's content. See the box's documentation for more details.
默认:5pt
outset
How much to expand the ellipse's size without affecting the layout. See the box's documentation for more details.
默认:0pt
body
The content to place into the ellipse.
When this is omitted, the ellipse takes on a default size of at most
45pt
by 30pt
.
默认:none