2

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}

OUTPUT: enter image description here

Thank you very much.

Hypnotoad
  • 73
  • 6
  • 1
    Load the positioning library and say right=of. If necessary, you can say e.g. right-=of node.east or right=5mm of node or whatever. – cfr Jun 24 '16 at 14:08

0 Answers0