5

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

9
  • 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, 2015 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, 2015 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, 2015 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, 2015 at 17:59
  • 4
    I’m voting to close this question because the feature request was declined (github.com/pgf-tikz/pgf/issues/617) and hence loading arrows library as indicated in the comments seems to be the only solution.
    – TobiBS
    Sep 15, 2020 at 19:23

0

Browse other questions tagged .