CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/nicematrix


Readme for the package nicematrix

Author: F. Pantigny (fpantigny@wanadoo.fr).

CTAN page: https://ctan.org/pkg/nicematrix


The extension nicematrix is distributed under the LPPL 1.3 license.


The package nicematrix provides new environments similar to the classical environments {array} and {matrix} but with some additional features. Among these features are the possibilities to fix the width of the columns, to draw continuous ellipsis dots between the cells of the array and to add exterior rows and columns (so called border matrices).


The package nicematrix is present in the distributions MiK, Live and Mac.

For a manual installation:

  • put the files nicematrix.ins and nicematrix.dtx in the same directory;
  • run latex nicematrix.ins.

The file nicematrix.sty will be generated.

The file nicematrix.sty is the only file necessary to use the extension nicematrix.

Download the contents of this package in one zip archive (1010.1k).

nicematrix – Several features to improve the typesetting of mathematical matrices with TikZ

This package provides new environments similar to the environments matrix, pmatrix, bmatrix, etc. of amsmath and mathtools.

In these new environments, a TikZ  node is created for each cell of the matrix.

The user can use these nodes directly but nicematrix also provides commands which use these nodes to draw continuous dotted lines from two cells of the matrix (the result is more aesthetic than the classical result obtained using \cdots, \vdots, \ddots, etc.).

This package also provides a control over the width of the columns and the possibility to add an exterior line and an exterior column.

nicematrix requires and loads amsmath, array, expl3, l3keys2e, xparse, tikz, as well as the TikZ library fit.

Version3.7 2019-11-11
LicensesThe Project Public License 1.3
Copyright2017–2019 F. Pantigny
MaintainerFrançois Pantigny
Contained inTeX Live as nicematrix
MiKTeX as nicematrix
Experimental 3
Guest Book Sitemap Contact Contact Author