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.

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

Can I have any harpoons in TikZ?

I refer to my previous question on harpoons: "How to draw protocol interaction" using amsmath.
The closest thing I have found is this code:

    \node[circle,draw] (A) at (.5,.5) {A};   
    \node[circle,draw] (B) at (3,1.5) {B};   
    \draw[->,decorate] (A) -- (B);   
    \draw[->,decorate] (B) -- (A);  
share|improve this question
up vote 8 down vote accepted

There are so called partial arrow tips in TikZ. Use for instance left to, right to, left hook or right hook. They are desribed in section 23.7 of the pfg 2.10 manual (22.6 in the pgf 2.0 manual).

Inserting this into your example:

    \node[circle,draw] (A) at (.5,.5) {A};   
    \node[circle,draw] (B) at (3,1.5) {B};   
    \draw[-left to] (A.north east) -- (B.west);   
    \draw[-left to] (B) -- (A);  

alt text

share|improve this answer
I saw that manual. I need two arrows over each other to show protocol interaction. Can you put two arrow connected to two nodes atop of each other in a way that implies simultaneous exchange of messages? – Yasser Sobhdel Dec 11 '10 at 15:31
@Yasser: I've added an example. – Stefan Kottwitz Dec 11 '10 at 15:50
Thanks. That's it. – Yasser Sobhdel Dec 11 '10 at 16:48

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.