Suppose that I want to create 3 tikz nodes named a, b and c.
The nodes should be positioned in the following relational manner:
First of all, a's east anchor should be connected to b's west anchor. Furthermore, b's east anchor should be connected to c's west anchor.
What is the correct way to do this?
I tried the following code (which doesn't work). I'm not sure what is wrong with my logic here.
\begin{tikzpicture}
\node[rectangle , draw](a){A};
\node[rectangle, draw , right of = a , anchor = west](b){B};
\node[rectangle , draw , left of = a , anchor = east](c){C};
\end{tikzpicture}


\draw[->] (a) to (b);– Sigur Jan 24 '23 at 16:55right of=…butright=of …from thepositioninglibrary. Set eithernode distance=0or useright=0 of athen (same is true forleftof course) then you can drop theanchorkey. – Qrrbrbirlbel Jan 24 '23 at 18:41a.centerto be the reference and nota.westora.east. And you can't change that behaviour without extra work. → Usepositioningwith a zero node distance (either explicitly beforeofor implicitly vianode distsance). – Qrrbrbirlbel Jan 24 '23 at 18:44[anchor=west] at (a.east)which is whatright=0 of awill do automatically for you. – Qrrbrbirlbel Jan 24 '23 at 20:04