Typst Fumadocs

Cancel

Documentation for the `cancel` function.

Displays a diagonal line over a part of an equation.

This is commonly used to show the elimination of a term.

Example

Loading compiler...
#math.cancel(
  body,
  length: relative,
  inverted: bool,
  cross: bool,
  angle: auto | angle | function,
  stroke: length | color | gradient | stroke | tiling | dictionary
) -> content

Parameters

Prop

Type

On this page