I want to place two nodes besides each other, using TikZs right of= placement. But if the first node is two broad, like in the minimum example below, this does not work right. How can I make TikZ recognize the correct placement for the second node?
EXAMPLE:
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node [] (a) {AAAAAAAAAAAA};
\node [right of=a] (b) {B};
\end{tikzpicture}
\end{document}
Thank you very much.

positioninglibrary and sayright=of. If necessary, you can say e.g.right-=of node.eastorright=5mm of nodeor whatever. – cfr Jun 24 '16 at 14:08