texmf-dist/doc/latex/matrix-skeleton/example.tex
raw| 1 | \documentclass[tikz]{standalone} |
| 2 | |
| 3 | \usetikzlibrary{matrix.skeleton} |
| 4 | |
| 5 | \begin{document} |
| 6 | \begin{tikzpicture} |
| 7 | \matrix (m) [matrix of math nodes, |
| 8 | style odd rows on layer={background}{fill=black!25}] { |
| 9 | 1 & \frac{\frac{16}{2}}{4} & 3 \\ |
| 10 | 4.0000001 & 5 & 6 \\ |
| 11 | 7 & 8 & 9 \\ |
| 12 | 10 & 11 & 12 \\ |
| 13 | 13 & 14 & 15 \\ |
| 14 | }; |
| 15 | \fitandstyle{(m-cell-1-1) (m-cell-2-2)}{draw=red, fill=red!25, opacity=0.5} |
| 16 | \end{tikzpicture} |
| 17 | \end{document} |