Motivated by this question, I was wondering if there is a way to produce curved arrow heads with either pstricks and/or tikZ (alphabetic ordering;-). To be more specific, I'm interested in something like the top arrow in

enter image description here

which I produced with the feynmf code


(I only include the diagram code here because there are different ways of embedding these diagrams in LaTeX documents and please don't worry about the label={}. The way this curved arrow is produced is not relevant to the question, anyway.)

  • I'm trying to compile the code you provided, but I get a I detected a fmfgraph environment outside of fmffile. Do you know how to solve it? Jan 11 '18 at 17:40
  • look at nonlinear transforms there is an example in the manual
    – percusse
    Jan 11 '18 at 17:42
  • @PhelypeOleinik The code for the fmfgraph should not be relevant, but I am wrapping the code between \begin{document} \begin{fmffile}{Test} and \end{fmffile} \end{document} in a document that loads \usepackage{feynmp}. And of course I run mpost.
    – user121799
    Jan 11 '18 at 17:43
  • @percusse Do you mean the tikz-pgf manual?
    – user121799
    Jan 11 '18 at 17:45
  • @marmot Ah, sorry. I misunderstood your question :). In this case, I suggest you take a look at page 33 of the VisualTikZ. Also, try this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{bending,arrows.meta} \begin{document} \tikz\draw[-{Stealth[length=1cm,open,bend]}] (0,0) .. controls (1,-1) and (2,1) .. (3,1); \end{document}. If you like, I make it an answer. Jan 11 '18 at 17:49

Here it goes then :)

From page 33 of the VisualTikZ:

\usetikzlibrary{arrows.meta}% Arrows library for...
\usetikzlibrary{bending}% The bending library is the one that allows the bending of the arrows
% And a few examples:
\tikz{\draw[-{Latex[length=1cm,open,bend]},thick] (0,0) .. controls (1,-1) and (2,1) .. (3,1);}
\tikz{\draw[-{Stealth[length=1cm,open,bend]},thick] (0,0) .. controls (1,-1) and (2,1) .. (3,1);}
\tikz{\draw[-{Computer Modern Rightarrow[length=1cm,open,bend]},thick] (0,0) .. controls (1,-1) and (2,1) .. (3,1);}
\tikz{\draw[-{Bar[length=1cm,open,bend]},thick] (0,0) .. controls (1,-1) and (2,1) .. (3,1);}

Something went rwong with this one :P

\tikz{\draw[-{Hooks[length=1cm,open,bend]},thick] (0,0) .. controls (1,-1) and (2,1) .. (3,1);}

enter image description here

VisualTikZ and VisualPSTricks are excellent for quick reference and for those too lazy to read, like me.

I looked a little but didn't find the corresponding Trick in VisualPSTricks (hehe...).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy