Typst Fumadocs

Matrix

Documentation for the `mat` function.

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 can be aligned with the align parameter, or content in cells that are in the same row can be aligned with the & symbol.

Example

Loading compiler...
#math.mat(
  delim: none | str | array | symbol,
  align: alignment,
  augment: none | int | dictionary,
  gap: relative,
  row-gap: relative,
  column-gap: relative,
  rows
) -> content

Parameters

Prop

Type

On this page