3

Consider the following MWE

\documentclass[tikz]{standalone}
\usetikzlibrary{arrows,decorations.pathreplacing, decorations.markings,arrows.meta}
\tikzset{
  big arrow/.style={
    decoration={markings,mark=at position 1 with {\arrow[scale=2.4]{latex'}}},
    postaction={decorate,draw}
    }
  }

\begin{document}
\begin{tikzpicture}
  \draw [big arrow] (0,0) -- (3,0) node[below] {$x$};
  \draw [-{Latex[scale=2]}] (0,0) -- (0,3) node [left] {$y$};
\end{tikzpicture}
\end{document}

I would like to use the arrows.meta library to draw an error tip exactly like latex'. I read the documentation and apparently there is no Latex' in arrows.meta.

So, how can I draw in the y axis an arrow like the one in the x axis using the arrows.meta library ? (i.e avoiding using the decoration/postaction trick).

enter image description here

  • Since, as you said, arrows.new is superseded by arrows.meta, I'm removing my answer. Hopefully that will also give the question more visibility. – summer Mar 20 '15 at 8:02
  • Similar to, not 100% duplicate of, this post. As I said there: Cannot one just copy the definition \pgfarrowsdeclare{latex'}{latex'}... from pgflibraryarrows.code.tex? There are nothing but Bézier curves. – Symbol 1 Mar 21 '15 at 2:32
  • @Symbol1 I guess I can copy the definition however I wonder why weren't stealth' and latex' ported to arrows.meta. Is it possible to contact the developers for them to include these arrow styles? – petobens Mar 27 '15 at 17:37
  • Probably because some tips are time-consuming for both compiler and PDF viewer. Image that if every to construction ends up with 7 curves instead of 1 curve + 6 lines, it will be like 6.9x complex or something. Or image that there are teens of tips edition containing different combination of tips (just like Adobe Creative Suite)....... – Symbol 1 Mar 27 '15 at 17:59
  • @Symbol1 I opened a feature request here. – petobens Mar 29 '15 at 21:53

Your Answer

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

Browse other questions tagged or ask your own question.