TypstDocumentation

subShowable
Question mark

Set text in subscript.

The text is rendered smaller and its baseline is lowered.

Example

Revenue#sub[yearly]
Preview

Parameters
Question mark

body
contentRequiredPositional
Question mark

The text to display in subscript.

typographic
booleanSettable
Question mark

Whether to prefer the dedicated subscript characters of the font.

If this is enabled, Typst first tries to transform the text to subscript codepoints. If that fails, it falls back to rendering lowered and shrunk normal letters.

N#sub(typographic: true)[1]
N#sub(typographic: false)[1]
Preview

baseline
lengthSettable
Question mark

The baseline shift for synthetic subscripts. Does not apply if typographic is true and the font has subscript codepoints for the given body.

size
lengthSettable
Question mark

The font size for synthetic subscripts. Does not apply if typographic is true and the font has subscript codepoints for the given body.