Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.


I want to connect multiple arrows from one rectangle node to the other. I tried by having a few coordinate nodes declared in parallel and connecting these coordinate nodes together to form parallel arrows and then tried to place the rectangle node exactly on top of the coordinate list but I never succeded. My solution is as shown in the first picture.
pic 1
I am trying to do this
enter image description here

Thanks

share|improve this question

1 Answer 1

up vote 8 down vote accepted

To access selected positions of the node you can use the name of the node together with an angle separated by a dot, as in the following example:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}
  \node[draw, text badly centered, text width=2cm,minimum size=1cm] (a) {Frequency synthesizer};
  \node[draw, text badly centered, text width=2cm,minimum size=1cm,below=of a] (b) {Code generator};
  \draw[->] (b.140) -- (a.220);
  \draw[->] (b.40) -- (a.320);
\end{tikzpicture}

\end{document}

enter image description here

share|improve this answer
    
That worked like charm. Does tikz manual have the "angle separated by a dot" thing? –  Mir Apr 7 '11 at 3:01
1  
@Meeir Aalie: yes, at the end of Section 13.2.3 Node Coordinate System. –  Gonzalo Medina Apr 7 '11 at 3:17

Your Answer

 
discard

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.