lr function allows you to match two delimiters and scale them with the content they contain. While this also happens automatically for delimiters that match syntactically,
lr allows you to match two arbitrary delimiters and control their size exactly. Apart from the
lr function, Typst provides a few more functions that create delimiter pairings for absolute, ceiled, and floored values as well as norms.
$ [a, b/2] $ $ lr(]sum_(x=1)^n] x, size: #50%) $ $ abs((x + y) / 2) $
lrElementElement functions can be customized with
While matched delimiters scale by default, this can be used to scale unmatched delimiters and to control the delimiter scaling more precisely.
sizeauto or relativeSettableSettable parameters can be customized for all following uses of the function with a
The size of the brackets, relative to the height of the wrapped content.
The delimited content, including the delimiters.
Takes the absolute value of an expression.
$ abs(x/2) $
The expression to take the absolute value of.
Takes the norm of an expression.
$ norm(x/2) $
The expression to take the norm of.
Floors an expression.
$ floor(x/2) $
The expression to floor.
Ceils an expression.
$ ceil(x/2) $
The expression to ceil.
Rounds an expression.
$ round(x/2) $
The expression to round.