I am trying to make a simple tree using Tikz, but I have some problems with the right position (level) of the right side of the tree. How can this be fixed?
\documentclass{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 {root}
child { node {A (level 1)}
child { node {A.A (level 2)}
child { node {A.A.A (level 3)} }
child { node {A.A.B (level 3)} }
}
child { node {A.B (level 2)} }
child { node {A.C (level 2)} }
}
child { node {B (level 1)}
child { node {B.A (level 2)} }
child { node {B.B (level 2)} }
child { node {B.C (level 2)} }
%} % comment, as it wouldn't typeset otherwise
};
\end{tikzpicture}
\end{document}


forest, it will solve this problem without your intervention: http://tex.stackexchange.com/q/60571/1952 – Ignasi Jul 02 '16 at 10:44