Graphics, Figures & Tablestables, graphs

Information and discussion about graphics, figures & tables in LaTeX documents.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

tables, graphs

Post by Stefan Kottwitz »

There are styles for cells, columns and rows, described in the TikZ manual in 17.3 Cell pictures. For example, similar to above:

Code: Select all

\begin{tikzpicture}
  \matrix (matrix) [
    matrix of nodes,
    nodes in empty cells,
    nodes={anchor=center,draw},
    cells={minimum width=2em},
    column 2/.style={minimum width=4em}
  ] {
    & & & & & & \\
  };
  \node[anchor=north] at (matrix.south) {Text};
\end{tikzpicture}
Stefan
LaTeX.org admin

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply