von esdd » So 12. Jun 2016, 20:01
Zum Beispiel
\documentclass[margin=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
sibling distance=10em,
every node/.style = {
shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20
}
]
\node {7. }[grow'=up]
child { node {5. }
child{node{3. }
child{node{2. }}
child{node{0. }}
}
child{% <- kein Node auf Ebene 2
child[missing]% linkes child auf Ebene 3 fehlt
child{node{1. }}
}
};
\end{tikzpicture}
\end{document}
oder
\documentclass[margin=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
sibling distance=10em,
every node/.style = {
shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20
}
]
\node {7. }[grow'=up]
child { node {5. }
child{node{3. }
child{node{2. }}
child{node{0. }}
}
child{% <- kein Node auf Ebene 2
child{node{1. }}% nur ein child auf Ebene 3
}
};
\end{tikzpicture}
\end{document}
Den zweiten Baum habe ich jetzt weg gelassen, da er für diese Frage hier nicht benötigt wird.
Zum Beispiel
[code]\documentclass[margin=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
sibling distance=10em,
every node/.style = {
shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20
}
]
\node {7. }[grow'=up]
child { node {5. }
child{node{3. }
child{node{2. }}
child{node{0. }}
}
child{% <- kein Node auf Ebene 2
child[missing]% linkes child auf Ebene 3 fehlt
child{node{1. }}
}
};
\end{tikzpicture}
\end{document}
[/code]
oder
[code]\documentclass[margin=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
sibling distance=10em,
every node/.style = {
shape=rectangle, rounded corners,
draw, align=center,
top color=white, bottom color=blue!20
}
]
\node {7. }[grow'=up]
child { node {5. }
child{node{3. }
child{node{2. }}
child{node{0. }}
}
child{% <- kein Node auf Ebene 2
child{node{1. }}% nur ein child auf Ebene 3
}
};
\end{tikzpicture}
\end{document}[/code]
Den zweiten Baum habe ich jetzt weg gelassen, da er für diese Frage hier nicht benötigt wird.