TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to draw something like this: enter image description here

So I did the following:

\node[draw] (node1) {Long long long box};
\node[draw, below left=of node1] {short} edge[->] (node1);
\node[draw, below right=of node1] {box} edge[->] (node1);

Then the result is:

enter image description here

I want to move the two short boxes just under the long box and within the length of the long box. I also like the two arrows straight vertical. How can I do this? I want to use relative positioning.

share|improve this question
up vote 9 down vote accepted

Use appropiate anchors and reference points for positioning the nodes. Use intersection coordinate system to draw the lines.

This is the MWE:

  \node[draw] (node1) {Long long long box};
  \node[draw, below=of node1.west, anchor=west] (this node) {short}
      edge[->] (node1.south-|this node);
  \node[draw, below=of node1.east, anchor=east] (this node) {box} 
      edge[->] (node1.south-|this node);



share|improve this answer
Any idea, how to place the short and box nodes above the long box? – user4514 Jun 29 '15 at 15:40
@user4514 Do you mean, changing below by above in the code? – JLDiaz Jun 29 '15 at 20:32
Yes, stupid question. Thanks! – user4514 Jun 30 '15 at 20:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.