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

I declare a new arrow in TikZ via:


In the first example you see that the left left arrow doesn't end at the coordinate (0,0). How can I avoid this? Next to the first picture you see an example of PSTricks which represented the correct output.

In the second example the arrow produced by tikz looks weird.

%need latex->ps-pdf or xelatex

First example
                   mark=at position 0 with {\arrowreversed[scale=1]{combined}},
                   mark=at position 1 with {\arrow[scale=1]{combined}},
    postaction={decorate},line width=3pt,blue] (0,0)  -- (3,0);

\draw[yellow,line width=2pt] (0,0)  -- (3,0);
Second example
\draw[red,line width=3pt,combined-combined] (0,0)  -- (3,0);
\draw[yellow,line width=2pt] (0,0)  -- (3,0);

share|improve this question
up vote 3 down vote accepted

In the pgfmanual p.612 and p.615, this problem is directly addressed. You can simply add an offset to the inner arrow placement via


which seems to be working for your examples. But play around with the offset value for further adjustment. Also note that the latex arrow has a rather long tip so it looks like it is misplaced but change the offset to -1.3 and you will see that it is not.

share|improve this answer
Do you know how to fixed the problem with the first example? – Marco Daniel Sep 10 '11 at 15:27
Actually, I have some doubts about the possibility of fixing that. The reason is that you use the combine version to obtain the new arrow tip and hence pgf just picks up two already defined arrow tips and simply concatenate them with the problem stated on page 612 in the manual regarding the right extent (which is the void you see in my opinion). If you want to use this combining option then (I think) you have to first modify the inner arrow tip and call it, say, modiftip and then use \pgfarrowsdeclarecombine{combined}{combined}{modiftip}{modiftip}{|}{|} – percusse Sep 10 '11 at 15:50

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.