5

I am using the following answer to illustrate what I want: TikZ: Bend text so that it follows a line.

Please consider this MWE:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{decorations.text}
\usetikzlibrary{shapes.symbols}

\begin{document}

% Bend curves from https://tex.stackexchange.com/a/22316/152550
\begin{tikzpicture}
    \def\myshift#1{\scriptsize\raisebox{1ex}}
    \node (Start) at (0,0) {Output};
    \node (End) at (-5,2) {Arrival};
    \draw [-latex,postaction={decorate,decoration={text along path,text align=center,text={|\myshift|this is an example}}}] (End) to [bend left=-5] (Start);
\end{tikzpicture}

\end{document}

Output

I would like to add one more line without text below it. This pair must have its arrow, possibly bigger (-latex):

What I want

Thanks!

4

You can add as many postaction and preaction as you wish. Just add one more!

Update based on manooooh's comment:

But there are two differents arrows. If possible, I want the lines to be one (and a little more stuck): so one "big" arrow.

Then there is no need to use multiple postaction, it's enough to use the double key.

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{decorations.text}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{arrows.meta}
\begin{document}

% Bend curves from https://tex.stackexchange.com/a/22316/152550
\begin{tikzpicture}
    \def\myshift#1{\scriptsize\raisebox{2ex}}
    \node (Start) at (0,0) {Output};
    \node (End) at (-5,2) {Arrival};
    \draw [arrows = {-Latex[length=0pt 3 0]},double distance=5pt,double,postaction={decorate,decoration={text along path,text align=center,text={|\myshift|this is an example}}}] 

    (End) to [bend left=-5] (Start);
\end{tikzpicture}

\end{document}

double-key

Old answer:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{decorations.text}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{arrows.meta}
\begin{document}

% Bend curves from https://tex.stackexchange.com/a/22316/152550
\begin{tikzpicture}
    \def\myshift#1{\scriptsize\raisebox{1ex}}
    \node (Start) at (0,0) {Output};
    \node (End) at (-5,2) {Arrival};
    \draw [-latex,postaction={decorate,decoration={text along path,text align=center,text={|\myshift|this is an example}}}] 
    [postaction={draw,black,thick,arrows = {-Latex[width'=0pt .5,length=15pt]}
,transform canvas={yshift=-5mm}}]
    (End) to [bend left=-5] (Start);
\end{tikzpicture}

\end{document}

postaction

| improve this answer | |
  • Thanks!! But there are two differents arrows. If possible, I want the lines to be one (and a little more stuck): so one "big" arrow. – manooooh Dec 7 '18 at 7:32
  • 1
    then no need to add one more postaction, just use the double key – AndréC Dec 7 '18 at 7:38
  • i just updated my answer – AndréC Dec 7 '18 at 7:47
  • You've taken "big" seriously... :D – manooooh Dec 7 '18 at 7:52
  • 1
    Is it too big? You can refine this by reading pages 185; 186 and 187 of manual 3.0.1a. – AndréC Dec 7 '18 at 7:55

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.