I have the following MWE which I would like to produce one top node and then 2 chains of children nodes, roughly like:
top
a1 b1
a2 b2
a3 b3
but instead, I get more something like this:
top
a1 b1
a2
a3 b2
b3
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
every node/.style={
text width=.2\linewidth,
draw,
},
]
\node(top){top};
\node(a1)[below left=of top]{a1};
\node(a2)[below of=a1]{a2};
\node(a3)[below of=a2]{a3};
\node(b1)[below right=of top]{b1};
\node(b2)[below=of b1]{b2};
\node(b3)[below=of b2]{b3};
\end{tikzpicture}
\end{document}
Is that correct and I am just missing something in my understanding, or is it a problem in TikZ? Is there a workaround? I am using TexLive as packaged in Ubuntu 22.04 (version 2021.20220204-1).


positioninglibrary. Use just one of them, since they are differ on way of node positioning, i.e.: between center of nodes at[below of=a1and between nodes' borders atbelow=of b17). – Zarko Oct 06 '22 at 07:10below of=makes the layout consistent now. Can you write that as an answer so that I can accept it? I appreciate that you helped me so swiftly. – eudoxos Oct 06 '22 at 07:34right ofis considered deprecated andright=ofshould be used. The optionon gridcan be used to place the nodes in relation their centers again (instead of the borders which is the default ofpositioning). – Qrrbrbirlbel Oct 06 '22 at 08:07