TypstDocumentation

strikeElement
Question mark

Strike through text.

Example

This is #strike[not] relevant.
Preview

Parameters
Question mark

stroke
auto or length or color or dictionary or stroke
Settable
Question mark

How to stroke the line.

See the line's documentation for more details. If set to auto, takes on the text's color and a thickness defined in the current font.

Note: Please don't use this for real redaction as you can still copy paste the text.

Default: auto

This is #strike(stroke: 1.5pt + red)[very stricken through]. \
This is #strike(stroke: 10pt)[redacted].
Preview

offset
auto or length
Settable
Question mark

Position of the line relative to the baseline, read from the font tables if auto.

This is useful if you are unhappy with the offset your font provides.

Default: auto

#set text(font: "Inria Serif")
This is #strike(offset: auto)[low-ish]. \
This is #strike(offset: -3.5pt)[on-top].
Preview

extent
length
Settable
Question mark

Amount that the line will be longer or shorter than its associated text.

Default: 0pt

This #strike(extent: -2pt)[skips] parts of the word.
This #strike(extent: 2pt)[extends] beyond the word.
Preview

body
content
RequiredPositional
Question mark

The content to strike through.