2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/tikz/b-tree/b-tree-3.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02:00

29 lines
970 B
TeX

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart, calc}
\begin{document}
\begin{preview}
\begin{tikzpicture}
\tikzstyle{bplus}=[rectangle split, rectangle split horizontal,rectangle split ignore empty parts,draw, fill=white]
\tikzstyle{every node}=[bplus]
\tikzstyle{level 1}=[sibling distance=60mm]
\tikzstyle{level 2}=[sibling distance=15mm]
\node {11} [->]
child {node {3 \nodepart{two} 7}
child {node {0 \nodepart{two} 1 \nodepart{three} 2}}
child {node {4 \nodepart{two} 5 \nodepart{three} 6}}
child {node {8 \nodepart{two} 9 \nodepart{three} 10}}
}
child {node {15 \nodepart{two} 18}
child[sibling distance=20mm] {node {12 \nodepart{two} 13 \nodepart{three} 14}}
child {node {16 \nodepart{two} 17}}
child {node {19}}
};
\end{tikzpicture}
\end{preview}
\end{document}