# TikZ matrix: matrices, arrays of nodes and array diagrams

> TikZ matrix library: matrix of nodes and math nodes, & and \\, cell names like (m-1-2), styles, brackets, highlighted cells, and array diagrams.

URL: https://www.labcanvas.com/tikz/matrix

Updated 2026-11-22. Pictures typeset with TeX Live 2026 and PGF 3.1.12; each is made from the code under it, in a standalone document with the preamble lines shown. Code on this page: CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/), copy freely. Try any snippet in the TikZ editor: https://www.labcanvas.com/tools/tikz-editor

## Quick answer

Load `\usetikzlibrary{matrix}` and write `\matrix (m) [matrix of nodes] { a & b \\ c & d \\ };`: cells are separated by `&`, **every row ends with \\, the last one too**, and every cell becomes a node named `(m-` *row* `-` *column* `)` that you can draw to afterwards. `matrix of math nodes` puts each cell in maths mode, `left delimiter=(` and `right delimiter=)` add brackets, and `nodes={draw}` with `column sep=-\pgflinewidth` turns the matrix into a row of boxes, the usual array diagram.

![A row of six square boxes containing 5, 3, 8, 1, 9 and 2, with the indices 0 to 5 in small grey type under them.](https://www.labcanvas.com/tikz-snippets/matrix/quick.webp)

*an array diagram: a one-row matrix of nodes with shared borders, indices placed from the cell names*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{matrix}`

```latex
\begin{tikzpicture}
  \matrix (a) [matrix of nodes, column sep=-\pgflinewidth,
               nodes={draw, minimum size=8mm, anchor=center}]
  {
    5 & 3 & 8 & 1 & 9 & 2 \\
  };
  \foreach \i [count=\k from 0] in {1,...,6}
    \node[below, font=\scriptsize\ttfamily, gray] at (a-1-\i.south) {\k};
\end{tikzpicture}
```

## How a TikZ matrix works

A TikZ matrix is a node whose content is a grid, similar to LaTeX’s `tabular`, except that every cell holds a small picture. `\matrix` is short for `\path node[matrix]` and needs no library: in a plain matrix each cell contains ordinary TikZ commands, usually `\node {…};`. Cells are separated by `&` and rows end with `\\`, and the manual is blunt about the last row: it must end with `\\` as well.

Each column is aligned on the *origins* of its cell pictures: a node is centred on the column line, and in the bottom-left cell the line from `(0,0)` starts there and runs to the right. Columns and rows are as wide and tall as their largest cell, and empty cells, like the middle of the second row, simply stay empty. `column sep` and `row sep` add space between columns and rows (both are zero by default); `&[5mm]` and `\\[2mm]` add extra space after one particular column or row, and `column sep={1cm,between origins}` measures from centre to centre instead of from border to border.

Because the matrix is a node, it can be named, drawn and positioned (`at`, `right=of …`, `matrix anchor=west`). Two consequences: options given to the `\matrix` itself also reach the cells (`dashed` or a colour on the matrix would also make the nodes and lines inside it dashed or coloured; `every outer matrix` applies only to the outer node, which is how the dashed frame here is drawn), and rotating or scaling the whole matrix has no effect.

![A dashed frame around a 3 by 3 grid: boxes A and B and a red dot in the first row, a box wide cell, an empty cell and C in the second, and a slanted line, D and a two-line box a taller cell in the third.](https://www.labcanvas.com/tikz-snippets/matrix/plain-matrix.webp)

*a plain \matrix without the library: each cell is a small picture aligned on its origin*

Preamble: `\usepackage{tikz}`

```latex
\begin{tikzpicture}[every outer matrix/.style={draw=gray, dashed}]
  \matrix [column sep=8mm, row sep=4mm, nodes={draw, fill=blue!8}]
  {
    \node {A};         & \node {B};         & \fill[red] (0,0) circle[radius=1.5mm]; \\
    \node {wide cell}; &                    & \node {C};                             \\
    \draw (0,0) -- (1,0.4); & \node {D};    & \node[align=center] {a taller\\cell}; \\
  };
\end{tikzpicture}
```

## matrix of nodes and matrix of math nodes

Writing `\node {…};` in every cell is tedious, so the `matrix` library adds `matrix of nodes`: each cell’s text becomes a node automatically, and `matrix of math nodes` does the same with every cell in maths mode, so you write `a_{11}` without dollar signs. Style all the cells with `nodes={…}` (it adds to `every node` inside the matrix but not to the matrix itself).

Every cell node is named after the matrix: in `\matrix (m)`, the cell in row 2, column 3 is `(m-2-3)`. That turns a matrix into a layout grid for diagrams, as below, where the arrows are drawn after the matrix from cell to cell. One cell can get its own options and a name by starting it with bars: `|[fill=orange!25] (core)| Compute`. A cell that starts with `\node`, `\draw` or another path command is used as it is, for complete control over that cell.

The cell nodes are anchored at their `base`, so text in a row sits on one baseline. When the cells have a border and a fixed size, add `anchor=center` to `nodes`: otherwise a cell whose text has a descender, or an empty cell, sits slightly higher or lower than its neighbours.

![Six rounded boxes in two rows, Read, Parse and Check on top and Store, Compute and Report below, with arrows from Read to Parse to Check, down to an orange highlighted Compute, and from Compute to Store and to Report.](https://www.labcanvas.com/tikz-snippets/matrix/cell-names.webp)

*cells named (m-row-column), one cell styled and renamed with |[…] (core)|, arrows drawn afterwards*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{matrix, arrows.meta}`

```latex
\begin{tikzpicture}[>=Stealth]
  \matrix (m) [matrix of nodes, row sep=6mm, column sep=10mm,
               nodes={draw, rounded corners, minimum width=16mm, minimum height=7mm, anchor=center}]
  {
    Read  & Parse                                & Check  \\
    Store & |[fill=orange!25, thick] (core)| Compute & Report \\
  };
  \draw[->] (m-1-1) -- (m-1-2);
  \draw[->] (m-1-2) -- (m-1-3);
  \draw[->] (m-1-3) -- (core);
  \draw[->] (core) -- (m-2-1);
  \draw[->] (core) -- (m-2-3);
\end{tikzpicture}
```

## Row, column and cell styles, and empty cells

Styles named after positions style whole rows and columns: `row 1/.style={nodes={fill=gray!25}}`, `column 2/.style=…`, `every odd row`, `every even row`, `every odd column`, `every even column`, and `row 3 column 4/.style=…` for one cell. With a matrix of nodes, wrap node options in `nodes={…}` inside these styles, because the style applies to the cell, not directly to the node in it.

When styles overlap, the later one wins. The default order is every cell, column, every even/odd column, row, every even/odd row, then the single cell (the key `matrix/inner style order` changes it), so a row style overrides a column style: in the table below, the first column is italic, but its header cell is bold because `row 1` comes later and sets `font` again.

Empty cells get no node at all, so they have no border and no fill. `nodes in empty cells` gives them an empty node, which completes grids and tables like the missing measurement here. `column sep=-\pgflinewidth` and `row sep=-\pgflinewidth` make neighbouring borders overlap, so lines between cells are not doubled.

![A grid table with a grey bold header row Sample, Run 1, Run 2, Run 3, italic sample names A, B and C, light blue stripes on rows A and C, an empty bordered cell in row B, and the value 0.58 on a red background.](https://www.labcanvas.com/tikz-snippets/matrix/table-styles.webp)

*row 1, every even row, column 1 and row 3 column 4 styles, nodes in empty cells and shared borders*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{matrix}`

```latex
\begin{tikzpicture}
  \matrix [matrix of nodes, nodes in empty cells,
           column sep=-\pgflinewidth, row sep=-\pgflinewidth,
           nodes={draw, minimum width=15mm, minimum height=7mm, anchor=center},
           row 1/.style={nodes={fill=gray!25, font=\bfseries}},
           every even row/.style={nodes={fill=blue!6}},
           column 1/.style={nodes={font=\itshape}},
           row 3 column 4/.style={nodes={fill=red!25}}]
  {
    Sample & Run 1 & Run 2 & Run 3 \\
    A      & 0.12  & 0.15  & 0.11  \\
    B      & 0.31  &       & 0.58  \\
    C      & 0.07  & 0.09  & 0.08  \\
  };
\end{tikzpicture}
```

## Brackets and delimiters

`left delimiter` and `right delimiter` (matrix library) draw a delimiter as tall as the matrix: anything TeX’s `\left` accepts, so `(` and `)`, `{[}` and `{]}` (put square brackets in braces, so that `]` does not end the option list), `\{` and `\}`, `|`, and `\|` for a double bar. `above delimiter` and `below delimiter` do the same on the other sides. They work on any node with the standard anchors, not only on matrices, and the styles `every left delimiter` and `every right delimiter` shift or colour them, for example `every left delimiter/.style={xshift=1ex}` to move the bracket closer.

![Five 2 by 2 matrices with entries a, b, c, d, enclosed in parentheses, square brackets, curly braces, single bars and double bars, each labelled underneath.](https://www.labcanvas.com/tikz-snippets/matrix/delimiters.webp)

*left and right delimiter with ( ), [ ], \{ \}, | | and \| \|*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{matrix}`

```latex
\begin{tikzpicture}[mat/.style={matrix of math nodes, column sep=1mm}]
  \matrix (p) at (0,0)   [mat, left delimiter=(,   right delimiter=)]   {a & b \\ c & d \\};
  \matrix (b) at (2.2,0) [mat, left delimiter={[}, right delimiter={]}] {a & b \\ c & d \\};
  \matrix (c) at (4.4,0) [mat, left delimiter=\{,  right delimiter=\}]  {a & b \\ c & d \\};
  \matrix (v) at (6.6,0) [mat, left delimiter=|,   right delimiter=|]   {a & b \\ c & d \\};
  \matrix (n) at (8.8,0) [mat, left delimiter=\|,  right delimiter=\|]  {a & b \\ c & d \\};
  \foreach \m/\name in {p/parentheses, b/brackets, c/braces, v/bars, n/double bars}
    \node[below=3mm, font=\footnotesize] at (\m.south) {\name};
\end{tikzpicture}
```

## Typesetting a matrix: dots, labels and the name

For a general matrix, put `\cdots`, `\vdots` and `\ddots` in cells of a matrix of math nodes. `minimum width` with `anchor=center` in `nodes` gives the columns an even width. Because the cells have names, annotations are drawn from them: the arrow over the top row runs from `(A-1-1.north west)` to `(A-1-4.north east)`, shifted up with `[yshift=3mm]`. The `A =` is a separate node placed to the left of the matrix node, far enough out to clear the parenthesis, which is drawn outside the node.

If the matrix is only an equation in your text, the LaTeX environments `pmatrix` and `bmatrix` (amsmath) are simpler. A TikZ matrix pays off when you draw on it: arrows between entries, frames, highlighted rows. The [nicematrix](https://ctan.org/pkg/nicematrix) package (version 7.13a on CTAN) is a third way: its environments (`pNiceMatrix`, `bNiceMatrix`, `NiceArray`…) work like those of amsmath and array but create a PGF node under every cell, so you can draw on the matrix with TikZ, and they add continuous dotted lines, blocks, cell colours and row and column labels of their own. Like everything that remembers node positions, some of its features need two LaTeX runs.

![The matrix A equals, in parentheses, entries a11 to amn with horizontal, vertical and diagonal dots, a grey double arrow above labelled n columns and one on the right labelled m rows.](https://www.labcanvas.com/tikz-snippets/matrix/math-matrix.webp)

*a general m × n matrix with dots, A =, and size labels drawn from the corner cells*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{matrix}`

```latex
\begin{tikzpicture}
  \matrix (A) [matrix of math nodes, left delimiter=(, right delimiter=),
               nodes={minimum width=8mm, anchor=center}, row sep=1mm]
  {
    a_{11} & a_{12} & \cdots & a_{1n} \\
    a_{21} & a_{22} & \cdots & a_{2n} \\
    \vdots & \vdots & \ddots & \vdots \\
    a_{m1} & a_{m2} & \cdots & a_{mn} \\
  };
  \node[left=5mm] at (A.west) {$A =$};
  % labels from the cell names: n columns above, m rows on the right
  \draw[<->, gray] ([yshift=3mm]A-1-1.north west) -- node[above, black] {$n$ columns}
                   ([yshift=3mm]A-1-4.north east);
  \draw[<->, gray] ([xshift=6mm]A-1-4.north east) -- node[right, black] {$m$ rows}
                   ([xshift=6mm]A-4-4.south east);
\end{tikzpicture}
```

## Highlighting cells, rows and columns

To highlight part of a matrix, draw a shape behind the cells. `fit=(m-1-1) (m-3-1)` (library `fit`) makes a node just big enough for those cells, here the whole first column, and `fit=(m-2-2) (m-2-4)` covers part of a row. Inside `\begin{scope}[on background layer]` (library `backgrounds`) the fills are drawn under the numbers; drawn normally afterwards, they would cover them. A circle around one entry is `\draw (m-1-1) circle[radius=3mm];`, and notes beside a row, like the row operations, are nodes placed at `(m-2-4.east)`.

![A 3 by 4 matrix in square brackets with the first column on a blue rounded background, the last three entries of the second row on an orange background, the top-left 2 circled in red, and the notes R2 − 2R1 and R3 + R1 beside rows two and three.](https://www.labcanvas.com/tikz-snippets/matrix/highlight.webp)

*a column, part of a row and one entry highlighted with fit on the background layer*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{matrix, fit, backgrounds}`

```latex
\begin{tikzpicture}
  \matrix (m) [matrix of math nodes, left delimiter={[}, right delimiter={]},
               nodes={minimum width=7mm, minimum height=6mm, anchor=center}]
  {
    2 & 1 & -1 & 8   \\
    4 & 3 & -1 & 18  \\
    -2 & 1 & 2 & -3  \\
  };
  \begin{scope}[on background layer]
    % a whole column, a whole row, and one cell
    \node[fill=blue!12, rounded corners, inner sep=0pt, fit=(m-1-1) (m-3-1)] {};
    \node[fill=orange!25, rounded corners, inner sep=0pt, fit=(m-2-2) (m-2-4)] {};
    \draw[red, thick] (m-1-1) circle[radius=3mm];
  \end{scope}
  \node[right=5mm, font=\small] at (m-2-4.east) {$R_2 - 2R_1$};
  \node[right=5mm, font=\small] at (m-3-4.east) {$R_3 + R_1$};
\end{tikzpicture}
```

## Array diagrams: boxes, indices and pointers

For a data-structure array (the picture at the top of this page), a one-row matrix of nodes with `nodes={draw, minimum size=8mm}` and `column sep=-\pgflinewidth` gives equal boxes sharing their borders, and a loop places the indices under `(a-1-\i.south)`; `[count=\k from 0]` numbers them from zero.

When the values come from a list, a `\foreach` loop without a matrix is just as easy: each box is a node at `(0.8*\i, 0)`, 8 mm apart with `minimum size=8mm`, so the borders meet. With the nodes named `c0`, `c1`, … you can point at an element, colour it from behind (`\scoped[on background layer]`) and mark a slice with a brace (`decorations.pathreplacing`, with `mirror` to open it downwards). For two-dimensional arrays, nest two loops, or use a matrix with several rows as in the table above.

![A row of seven boxes labelled arr containing 7, 2, 9, 4, 1, 6, 3 with indices 0 to 6 above, the 9 at index 2 in yellow with a red arrow from the label arr[2] below, and a brace under the last three boxes labelled arr[4:7].](https://www.labcanvas.com/tikz-snippets/matrix/array-foreach.webp)

*an array from a \foreach list: indices, a pointer to arr[2] and a brace under a slice*

Preamble: `\usepackage{tikz}`, `\usetikzlibrary{arrows.meta, decorations.pathreplacing, backgrounds}`

```latex
\begin{tikzpicture}[cell/.style={draw, minimum size=8mm, anchor=west}]
  \foreach \v [count=\i from 0] in {7, 2, 9, 4, 1, 6, 3} {
    \node[cell] (c\i) at (0.8*\i, 0) {\v};
    \node[font=\scriptsize\ttfamily, gray, above] at (c\i.north) {\i};
  }
  \node[left=1mm, font=\ttfamily] at (c0.west) {arr};
  % one element: coloured behind its cell and pointed at
  \scoped[on background layer] \fill[yellow!50] (c2.south west) rectangle (c2.north east);
  \draw[Stealth-, thick, red] (c2.south) -- ++(0,-7mm) node[below] {\texttt{arr[2]}};
  % a slice marked with a brace
  \draw[decorate, decoration={brace, mirror, amplitude=5pt}, thick]
    ([yshift=-2pt]c4.south west) -- ([yshift=-2pt]c6.south east)
    node[midway, below=6pt, font=\small] {\texttt{arr[4:7]}};
\end{tikzpicture}
```

## Arrays of values in TikZ code (pgfmath arrays)

“Array” can also mean a list of numbers inside the TikZ code. The PGF maths parser has arrays: store one in a macro *with two pairs of braces*, `\def\data{{4,8,15,16}}`, and read an element with `\data[2]` in any expression (indices start at 0, so that is 15). Arrays can be nested for two dimensions, `\grid[\r][\c]`, as in this heat map, where `\pgfmathtruncatemacro` stores the integer value and also turns it into a colour percentage. `dim({4,8,15,16})` gives the length (4), and `array(x,k)` is the same as `x[k]`.

To loop over the values themselves you rarely need an array: `\foreach \v in {4,8,15,16}` walks a list directly, and `\foreach \x/\y in {1/4, 2/8}` walks pairs. Arrays help when you need the values by position, for example a value from the row above.

![A 3 by 4 grid of squares with row indices 0 to 2 and column indices 0 to 3, each containing a digit and shaded teal in proportion to it, from white for 0 to dark teal for 9.](https://www.labcanvas.com/tikz-snippets/matrix/pgfmath-array.webp)

*a 2-D pgfmath array read with \grid[\r][\c] in two nested loops*

Preamble: `\usepackage{tikz}`

```latex
\begin{tikzpicture}[scale=0.8]
  % a 2-D array stored in a macro: note the double braces
  \def\grid{{{3,7,1,0},{5,9,4,2},{0,6,8,5}}}
  \foreach \r in {0,1,2} {
    \node[left, font=\scriptsize\ttfamily] at (-0.1, -\r-0.5) {\r};
    \foreach \c in {0,1,2,3} {
      \pgfmathtruncatemacro\v{\grid[\r][\c]}   % element in row \r, column \c
      \pgfmathtruncatemacro\shade{\v*10}
      \draw[fill=teal!\shade] (\c, -\r) rectangle ++(1,-1);
      \node at (\c+0.5, -\r-0.5) {\v};
    }
  }
  \foreach \c in {0,1,2,3}
    \node[above, font=\scriptsize\ttfamily] at (\c+0.5, 0) {\c};
\end{tikzpicture}
```

## Common errors and how to fix them

| LaTeX says (or you see) | Cause and fix |
| --- | --- |
| Missing } inserted. | The last row of the matrix does not end with \\. Every row needs it, including the last: … 3 & 4 \\ }; |
| Package pgfkeys Error: I do not know the key '/tikz/matrix of nodes' and I am going to ignore it. Perhaps you misspelled it. | matrix of nodes, matrix of math nodes, nodes in empty cells and the delimiter keys come from \usetikzlibrary{matrix}. Plain \matrix works without it. |
| Undefined control sequence. \pgf@matrix@last@nextcell@options | The matrix is inside the argument of another command (\fbox{…}, a macro of your own) or in a beamer frame without [fragile], where & cannot work. Add ampersand replacement=\& to the matrix and separate the cells with \& instead of &, or use \begin{frame}[fragile]. |
| Package pgf Error: No shape named `m-1-1' is known. | Cells are named after the matrix, and this matrix has no name. Write \matrix (m) [matrix of nodes] …; the cell names are then m-1-1, m-1-2 and so on. |
| Package PGF Math Error: Array index out of bounds. (in '4,8,15[1]'). | The array was stored with one pair of braces, \def\data{4,8,15}. A pgfmath array needs its own braces inside the macro: \def\data{{4,8,15}}. The same message appears for an index past the end; indices start at 0. |
| A cell with \\ inside it becomes an extra row (no error) | In a matrix of nodes, \\ ends the row even in a cell with text width. Put the whole cell in braces, {upper line \\ lower line}, so that \\ breaks the line inside the cell. |

## Frequently asked questions

### How do I draw a matrix with brackets in TikZ?

Load \usetikzlibrary{matrix} and write \matrix [matrix of math nodes, left delimiter={[}, right delimiter={]}] { a & b \\ c & d \\ };. Use (and) for parentheses, \{ and \} for braces, | or \| for determinants and norms. For a matrix that is only part of an equation, amsmath’s bmatrix and pmatrix are simpler.

### How do I refer to a cell of a TikZ matrix?

Name the matrix, \matrix (m) [matrix of nodes], and the cell in row i and column j is the node m-i-j, for example \draw[->] (m-1-1) -- (m-2-3);. All node anchors work, such as (m-2-3.north east). To give a single cell another name, start it with |(name)|.

### How do I draw an array (data structure) in TikZ?

Use a one-row matrix of nodes with nodes={draw, minimum size=8mm} and column sep=-\pgflinewidth, or a \foreach loop that places square nodes 8 mm apart. Put the indices under the boxes with nodes at (a-1-\i.south), and point at an element with an arrow to its node.

### How do I highlight an entry or a row of a matrix in TikZ?

Draw a filled node with fit=(m-2-1) (m-2-3) inside \begin{scope}[on background layer], using the fit and backgrounds libraries, so the colour is behind the entries. For one cell you can also use a cell style, row 2 column 2/.style={nodes={fill=yellow}}, or |[fill=yellow]| at the start of the cell.

### How do I make an array of values in TikZ?

Store it in a macro with double braces, \def\data{{4,8,15,16}}, and read elements in expressions, \pgfmathsetmacro\v{\data[2]}; indices start at 0, and \data[1][2] reads nested arrays. To process every value in turn, a \foreach loop over the list is simpler.

### Why is there a gap or a double line between the cells?

column sep and row sep are added between the cell borders, and adjacent borders are both drawn. Set column sep=-\pgflinewidth and row sep=-\pgflinewidth to let them overlap, and give the nodes a fixed minimum width, minimum height and anchor=center so they line up.

## References

- [PGF/TikZ manual, §20 Matrices and Alignment](https://tikz.dev/tikz-matrices)
- [PGF/TikZ manual, §20.3.2 Setting and Adjusting Column and Row Spacing](https://tikz.dev/tikz-matrices#sec-20.3.2)
- [PGF/TikZ manual, §20.3.3 Cell Styles and Options](https://tikz.dev/tikz-matrices#sec-20.3.3)
- [PGF/TikZ manual, §20.5 Considerations Concerning Active Characters (ampersand replacement)](https://tikz.dev/tikz-matrices#sec-20.5)
- [PGF/TikZ manual, §59.1 Matrices of Nodes](https://tikz.dev/library-matrix#sec-59.1)
- [PGF/TikZ manual, §59.2 End-of-Lines and End-of-Row Characters in Matrices of Nodes](https://tikz.dev/library-matrix#sec-59.2)
- [PGF/TikZ manual, §59.3 Delimiters](https://tikz.dev/library-matrix#sec-59.3)
- [PGF/TikZ manual, §94.2 Operators (array operators { } and [ ])](https://tikz.dev/math-parsing#sec-94.2)
- [PGF/TikZ manual, §94.3.8 Miscellaneous Functions (array, dim)](https://tikz.dev/math-parsing#sec-94.3.8)
- [PGF/TikZ manual, §54 Fitting Library](https://tikz.dev/library-fit)
- [pgf package (TikZ) 3.1.12 on CTAN, with the full manual as PDF](https://ctan.org/pkg/pgf)
- [nicematrix 7.13a on CTAN (manual: nicematrix.pdf)](https://ctan.org/pkg/nicematrix)

## More TikZ guides

- [TikZ diagrams: block, cycle, flowchart, tree and more](https://www.labcanvas.com/tikz/diagrams): How to draw diagrams in TikZ: block, cycle, flowchart, tree, graph, timeline, matrix, commutative and circuit diagrams, each with compiled code.
- [TikZ nodes: shapes, anchors, positioning and labels](https://www.labcanvas.com/tikz/nodes): How TikZ nodes work: shapes, size (inner sep, minimum size), all anchors, the positioning library (right=of, node distance), labels, pins and scaling.
- [Commutative diagrams with tikz-cd](https://www.labcanvas.com/tikz/commutative-diagrams): Draw commutative diagrams with tikz-cd: the tikzcd grid, \arrow directions, labels, arrow styles, pullbacks, exact sequences, snake lemma and editors.
- [TikZ flowchart: shapes, decisions, loops and a template](https://www.labcanvas.com/tikz/flowchart): Flowcharts in LaTeX with TikZ: the standard shapes, yes/no decisions, right-angled arrows, loops, swimlanes and a reusable template with compiled output.
- [TikZ arrows: arrow tips, sizes, curves and labels](https://www.labcanvas.com/tikz/arrows): All TikZ arrow tips in one rendered table, arrows.meta sizing (length, width, scale, open, round), and curved, labelled, thick, block and squiggly arrows.
- [How to draw a rectangle in TikZ (with rounded corners and text)](https://www.labcanvas.com/tikz/rectangle): Draw rectangles in TikZ: the two-corner syntax, rounded corners (all or only some), text inside, exact node size, fill, opacity, squares and fit boxes.
- [TikZ: what it is and how to use it in LaTeX](https://www.labcanvas.com/tikz): What TikZ (PGF/TikZ) is and how to use it in LaTeX: the minimal document, libraries, coordinates, a first figure in steps, Overleaf and TeX Live.
