mat
A matrix.
The elements of a row should be separated by commas, while the rows themselves should be separated by semicolons. The semicolon syntax merges preceding arguments separated by commas into an array. You can also use this special syntax of math function calls to define custom functions that take 2D data.
Content in cells that are in the same row can be aligned with the &
symbol.
Example
$ mat(
1, 2, ..., 10;
2, 2, ..., 10;
dots.v, dots.v, dots.down, dots.v;
10, 10, ..., 10;
) $

ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
mat()
rows
arrayPositionalPositional parameters are specified in order, without names.VariadicVariadic parameters can be specified multiple times.
Positional parameters are specified in order, without names.
Variadic parameters can be specified multiple times.
An array of arrays with the rows of the matrix.
#let data = ((1, 2, 3), (4, 5, 6))
#let matrix = math.mat(..data)
$ v := matrix $

delim
stringSettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.The delimiter to use.
- "("
Delimit with parentheses.
- "["
Delimit with brackets.
- "{"
Delimit with curly braces.
- "|"
Delimit with vertical bars.
- "||"
Delimit with double vertical bars.
#set math.mat(delim: "[")
$ mat(1, 2; 3, 4) $
