TypstDocumentation

vecElement
Question mark

A column vector.

Content in the vector's elements can be aligned with the & symbol.

Example

$ vec(a, b, c) dot vec(1, 2, 3)
    = a + 2b + 3c $
Preview

Parameters
Question mark

delim
none or str
Settable
Question mark

The delimiter to use.

VariantDetails
"("

Delimit with parentheses.

"["

Delimit with brackets.

"{"

Delimit with curly braces.

"|"

Delimit with vertical bars.

"||"

Delimit with double vertical bars.

Default: "("

View example
#set math.vec(delim: "[")
$ vec(1, 2) $
Preview

gap
relative
Settable
Question mark

The gap between elements.

Default: 0.5em

View example
#set math.vec(gap: 1em)
$ vec(1, 2) $
Preview

children
content
RequiredPositional
Question mark
Variadic
Question mark

The elements of the vector.