TypstDocumentation

classElement
Question mark

Forced use of a certain math class.

This is useful to treat certain symbols as if they were of a different class, e.g. to make a symbol behave like a relation.

Example

#let loves = math.class(
  "relation",
  sym.suit.heart,
)

$x loves y and y loves 5$
Preview

Parameters
Question mark

math.class(
string,content,
) -> content

class
string
RequiredPositional
Question mark

The class to apply to the content.

body
content
RequiredPositional
Question mark

The content to which the class is applied.