TypstDocumentation

strikeShowable
Question mark

Strike through text.

Example

This is #strike[not] relevant.
Preview

Parameters
Question mark

body
contentRequiredPositional
Question mark

The content to strike through.

stroke
autolengthcolorstrokeShorthand
Question mark
Settable
Question mark

How to stroke the line. The text color and thickness are read from the font tables if auto.

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

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

offset
autolengthSettable
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.

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

extent
lengthSettable
Question mark

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

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