TypstDocumentation

emphElement
Question mark

Emphasizes content by toggling italics.

Example

This is _emphasized._ \
This is #emph[too.]

#show emph: it => {
  text(blue, it.body)
}

This is _emphasized_ differently.
Preview

Syntax

This function also has dedicated syntax: To emphasize content, simply enclose it in underscores (_). Note that this only works at word boundaries. To emphasize part of a word, you have to use the function.

Parameters
Question mark

emph() -> content

body
content
RequiredPositional
Question mark

The content to emphasize.