Typst Fumadocs

Emphasis

Documentation for the `emph` function.

Emphasizes content by toggling italics.

  • If the current text style is "normal", this turns it into "italic".
  • If it is already "italic" or "oblique", it turns it back to "normal".

Example

Loading compiler...

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.

#emph(
  body
) -> content

Parameters

Prop

Type

On this page