Info
This site is generated using the static site generator developed by the Typst Community. Please adjust the text content of this banner according to your usage requirements. At Typst GmbH's request, when publishing documentation, you must clearly indicate that it is non-official and display the version of Typst being documented. For details, refer to Issue #874 on typst/typst.
TypstDocumentEnglish
v0.dev.2025-09-12

emph
Element
Element
Element functions can be customized with set and show rules.

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

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.

Parameter
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.

body
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.

The content to emphasize.

Open official docs

Search