As seen above, the underbrace does not extend. The expected output is as follows
which is achieved by adding padding using \hspace{1em} before and after one of the entries. I think it could be better to add a new option to nicematrix such as margin-in which refers to internal margin and adds specific space before and after all elements of the matrix.
@fpantigny mentions in Adding margin to nicematrix does not add space around cells that using {bNiceArray} with a preamble: {>{\hspace{1em}}c<{\hspace{1em}}} is a good workaround. This is correct, but adding too much code in the preamble of bNiceArray is too redundant and could be distracting when adding multiple columns. In the following example, it is possible to add an option as margin-in[1]=1em (adds padding for column 1 of 1em)
As seen above, the underbrace does not extend. The expected output is as follows
which is achieved by adding padding using
\hspace{1em}
before and after one of the entries. I think it could be better to add a new option tonicematrix
such asmargin-in
which refers to internal margin and adds specific space before and after all elements of the matrix.@fpantigny mentions in Adding margin to nicematrix does not add space around cells that using
{bNiceArray}
with a preamble:{>{\hspace{1em}}c<{\hspace{1em}}}
is a good workaround. This is correct, but adding too much code in the preamble ofbNiceArray
is too redundant and could be distracting when adding multiple columns. In the following example, it is possible to add an option asmargin-in[1]=1em
(adds padding for column1
of1em
)