Directory macros/latex/contrib/nicematrix
Readme for the package nicematrix
Author: F. Pantigny (fpantigny@wanadoo.fr).
CTAN page: https://ctan.org/pkg/nicematrix
GitHub page: github.com/fpantigny/nicematrix
License
The LaTeX extension nicematrix is distributed under the LPPL 1.3 license.
Presentation
The LaTeX package nicematrix provides new environments similar to the classical environments {tabular}, {array} and {matrix} but with some additional features. The extension nicematrix creates PGF/Tikz nodes corresponding to the cells of the array and uses them to provide new functionalities.
This package can be used with xelatex, lualatex, pdflatex but also by the classical workflow latex-dvips-ps2pdf (or Adobe Distiller).
Installation
The package nicematrix is present in the distributions MiKTeX, TeX Live and MacTeX.
For a manual installation:
- put the files
nicematrix.insandnicematrix-code.dtxin the same directory; - run
latex nicematrix.insin that directory.
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.
For the documentation in English, run: lualatex nicematrix.tex (several compilations are required).
For the documentation in French, run: lualatex nicematrix-french.tex (several compilations are required).
Download the contents of this package in one zip archive (2.7M).
nicematrix – Improve the typesetting of mathematical matrices with PGF
This package is based on the package array. It creates PGF/TikZ nodes under the cells of the array and uses these nodes to provide functionalities to construct tabulars, arrays and matrices.
Among the features :
- continuous dotted lines for the mathematical matrices;
- exterior rows and columns (so-called border matrices);
- control of the width of the columns;
- tools to color rows and columns with a good PDF result;
- blocks of cells;
- tabular notes;
- etc.
The package requires and loads array, amsmath, pgfcore, and the module shapes of PGF.
| Package | nicematrix |
| Repository | https://github.com/fpantigny/nicematrix |
| Version | 7.4b 2025-11-23 |
| Licenses | The LaTeX Project Public License 1.3 |
| Copyright | 2018–2025 F. Pantigny |
| Maintainer | François Pantigny |
| Contained in | TeX Live as nicematrix MiKTeX as nicematrix |
| Topics | Maths PGF TikZ Matrix |