Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132930 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{2mm}
4
5
\usepackage{tikz}
6
\usetikzlibrary{shapes.multipart, calc}
7
8
\begin{document}
9
\begin{preview}
10
\begin{tikzpicture}[array/.style={rectangle split,rectangle split horizontal, rectangle split parts=#1,draw, anchor=center, fill=white}]
11
\node[array=5] (a) {
12
\nodepart{one}d
13
\nodepart{two}
14
\nodepart{three}c
15
\nodepart{four}c
16
\nodepart{five}b
17
};
18
\node[color=gray, anchor=north, yshift=-0.5] at (a.one) {\tiny $0$};
19
\node[color=gray, anchor=north, yshift=-2] at (a.two) {\tiny $1$};
20
\node[color=gray, anchor=north, yshift=-2] at (a.three) {\tiny $2$};
21
\node[color=gray, anchor=north, yshift=-2] at (a.four) {\tiny $3$};
22
\node[color=gray, anchor=north, yshift=-0.5] at (a.five) {\tiny $4$};
23
\end{tikzpicture}
24
\end{preview}
25
\end{document}
26
27