The nicematrix package
1 The environments of this package¶
The package nicematrix defines the following new environments.
| {NiceTabular} | {NiceArray} | {NiceMatrix} | {NiceArrayWithDelims} |
| {NiceTabular*} | {pNiceArray} | {pNiceMatrix} | |
| {NiceTabularX} | {bNiceArray} | {bNiceMatrix} | |
| {BNiceArray} | {BNiceMatrix} | ||
| {vNiceArray} | {vNiceMatrix} | ||
| {VNiceArray} | {VNiceMatrix} |
The environments {NiceArray}, {NiceTabular} and {NiceTabular*} are similar to the environments {array}, {tabular} and {tabular*} of the package array (which is loaded by nicematrix).
The environments {pNiceArray}, {bNiceArray}, etc. have no equivalent in array.
The environments {NiceMatrix}, {pNiceMatrix}, etc. are similar to the corresponding environments of amsmath (which is loaded by nicematrix): {matrix}, {pmatrix}, etc.
The environment {NiceTabularX} is similar to the environment {tabularx} from the eponymous package.1.
The environment {NiceArrayWithDelims} is a generalisation of the environment {NiceArray} and its variants (cf. 14.11).
It’s recommended to use primarily the classical environments and to use the environments of nicematrix only when some feature provided by these environments is used (this will save memory and speed up the compilation).
By the way, when using an environment of nicematrix it’s often possible to speed up the compilation by using the key no-cell-nodes (the compilation time may be reduced by a factor of 3 or 4). Indeed, numerous functionalities of nicematrix do not use the PGF/TikZ nodes created under the contents of the cells (cf. 15.1) and the key no-cell-nodes avoids their creation which is expensive (the creation of those nodes can’t be desactivated by nicematrix because nicematrix has no way to know whether those nodes are used directly by the final user in an environment {tikzpicture} after the environment of nicematrix).
All the environments of the package nicematrix accept, between square brackets, an optional list of key=value pairs. There must be no space before the opening bracket ([) of this list of options.