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. You have to put it in the same directory as your document or (best) in a texmf tree.

Download the contents of this package in one zip archive (1.2M).

nicematrix – Improve the typesetting of mathematical matrices with PGF

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

In these new environments, a PGF 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, pgf, as well as the TikZ library fit.

Version4.1 2020-05-27
LicensesThe Project Public License 1.3
Copyright2017–2020 F. Pantigny
MaintainerFrançois Pantigny
Contained inTeX Live as nicematrix
MiKTeX as nicematrix
TopicsExperimental 3
Guest Book Sitemap Contact Contact Author