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 have seen a lot of questions asking about how to draw arrows along curves. The decoration libary can help with this, but the solution seems very manual.. Is it possible to make a command that draws an arc, and places two arows on the arc?

If one calls S1 the start of the arc, S4 the end. And the placement of S2, and S3 for the points where the arows are placed. Then the arclength between S1 and S2, S2 and S3, S3 and S4 should be equal. Eg the placement of the arrows should always be equally spaced along the arc.

I gave this problem a go using a mix between tikz, and euclide. But any solutions is fine.

    \draw[domain=#4:#5,smooth,style={postaction={decorate},decoration={markings,mark=at position 0.33 with {\arrow{stealth}}},
           decoration={markings,mark=at position 0.66 with {\arrow{stealth}}}}
        plot ({#1+#3*cos(\x)}, {#1+#3*sin(\x)});
    \draw[domain=#4:#5,smooth,style={postaction={decorate},decoration={markings,mark=at position 0.33 with {\arrow{stealth reversed}}},
           decoration={markings,mark=at position 0.66 with {\arrow{stealth reversed}}}}
        plot ({#1+#3*cos(\x)}, {#1+#3*sin(\x)});

        \def\radius{2} \def\radiuss{0.5}



        \tkzDrawSegments[thick,-stealth](x1,x2 y1,y2)


        \tkzDrawPoints[color=red,shape=cross out,size=10pt](S1,S2)
        \tkzLabelPoint[above right](x2){$x$}

The problem with my code is that I often run into dimensions to large, if I use too small of an radius, the arrows are not equally spaced. Also using this approach one needs a seperate command to plot the arrows reversed.

share|improve this question
Duplicate ? tex.stackexchange.com/questions/20833/… – Alain Matthes Feb 4 '14 at 17:57

Your Answer


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

Browse other questions tagged or ask your own question.