I want to manually adjust the row-gap of a matrix. Then I found the syntax is confusing. This works:
$
mat(1;2;3; delim:"[", gap:#1em)
$
But this doesn’t:
$
mat(1;2;3; delim:"[", row-gap:#1em)
$
How should I do it properly?
I want to manually adjust the row-gap of a matrix. Then I found the syntax is confusing. This works:
$
mat(1;2;3; delim:"[", gap:#1em)
$
But this doesn’t:
$
mat(1;2;3; delim:"[", row-gap:#1em)
$
How should I do it properly?
I’m not sure but this might be related to the recent question: How to use arguments with hyphens in math mode.
The documentation shows that you can use a set command to do this:
#set math.mat(row-gap: 1em)
$
mat(1;2;3; delim:"[")
$
Which renders the same as what you posted using the argument gap.  This will affect all matrices after this unless you encase this part in its own scope:
$
mat(1;2;3; delim:"[")
$
#[
  #set math.mat(row-gap: 1em)
  $
  mat(1;2;3; delim:"[")
  $
]
$
mat(1;2;3; delim:"[")
$
