0

This question already has an answer here:

Consider the following code from TeXample.net:

enter image description here

How to refactor it for adding sloped labels on the outside of the arrows? Do you have a more elegant solution with TikZ?

% Overlapping arrows
% Author: Elena Botoeva
\documentclass{article}
\usepackage[margin=0.3cm, paperwidth=3.3cm, paperheight=3.3cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{shadows}

\definecolor{darkblue}{rgb}{0.2,0.2,0.6}
\definecolor{darkred}{rgb}{0.6,0.1,0.1}
\definecolor{darkgreen}{rgb}{0.2,0.6,0.2}

\def\arrow{
  (10.75:1.1) -- (6.5:1) arc (6.25:120:1) [rounded corners=0.5] --
  (120:0.9) [rounded corners=1] -- (130:1.1) [rounded corners=0.5] --
  (120:1.3) [sharp corners] -- (120:1.2) arc (120:5.25:1.2)
  [rounded corners=1] -- (10.75:1.1) -- (6.5:1) -- cycle
}

\tikzset{
  ashadow/.style={opacity=.25, shadow xshift=0.07, shadow yshift=-0.07},
}

\def\arrows[#1]{         
  \begin{scope}[scale=#1]
    \draw[color=darkred, %
    drop shadow={ashadow, color=red!60!black}] \arrow;

    \draw[color=darkgreen, bottom color=green!90!black, top color=green!60, %
    drop shadow={ashadow, color=green!60!black}] [rotate=120] \arrow;

    \draw[color=darkblue, right color=blue, left color=blue!60, %
    drop shadow={ashadow, color=blue!60!black}] [rotate=240] \arrow;

    % to hide the green shadow
    \draw[color=darkred, left color=red, right color=red!60] \arrow;
  \end{scope}
}

\begin{document}
\thispagestyle{empty}
\begin{center}
  \begin{tikzpicture}
    \arrows[1];
  \end{tikzpicture}
\end{center}
\end{document}

marked as duplicate by Tom Bombadil, Jake, Claudio Fiandrino, mafp, Martin Schröder Jun 11 '13 at 18:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    I answered a similar question here, you can adapt it for instance by altering the raise key, probably also by myking it an argument of the macro. – Tom Bombadil Jun 11 '13 at 18:36
  • @TomBombadil: Simply beautiful, I'll try your solution later. Thanks. – juliohm Jun 11 '13 at 18:40
  • @TomBombadil: Could you please check my comment there? – juliohm Jun 12 '13 at 16:34
  • It appears it does not work for special characters, but I have no idea why. Probably you should ask a new question about it? – Tom Bombadil Jun 12 '13 at 18:43
  • @TomBombadil: Ok, I'll open a new question. Thank you again. – juliohm Jun 13 '13 at 1:02