Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

ellipse
Element
Element
Element functions can be customized with set and show rules.

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.
]
Preview

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

width
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The ellipse's width, relative to its parent container.

Default value:

auto

height
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The ellipse's height, relative to its parent container.

Default value:

auto

fill
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

How to fill the ellipse. See the rectangle's documentation for more details.

Default value:

none

stroke
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

How to stroke the ellipse. See the rectangle's documentation for more details.

Default value:

auto

inset
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

How much to pad the ellipse's content. See the box's documentation for more details.

Default value:

0% + 5pt

outset
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

How much to expand the ellipse's size without affecting the layout. See the box's documentation for more details.

Default value:

(:)

body
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
Settable
Settable
Settable parameters can be set using the set rule, changing the default value used thereafter.

The content to place into the ellipse.

When this is omitted, the ellipse takes on a default size of at most 45pt by 30pt.

Default value:

none

Open official docs

Search