classElementElementElement functions can be customized with set and show rules.
set and show rules.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. The class of a symbol
defines the way it is laid out, including spacing around it, and how its
scripts are attached by default. Note that the latter can always be
overridden using limits and scripts.
Example
#let loves = math.class(
"relation",
sym.suit.heart,
)
$x loves y and y loves 5$

ParameterParameterParameters are input values for functions. Specify them in parentheses after the function name.
classRequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
The class to apply to the content.
Available string values
normalThe default class for non-special things.
punctuationPunctuation, e.g. a comma.
openingAn opening delimiter, e.g.
(.closingA closing delimiter, e.g.
).fenceA delimiter that is the same on both sides, e.g.
|.largeA large operator like
sum.relationA relation like
=orprec.unaryA unary operator like
not.binaryA binary operator like
times.varyAn operator that can be both unary or binary like
+.
bodyRequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
The content to which the class is applied.