1

Is there a way to get -latex arrow heads to work when using decorations.markings?

\documentclass[convert = false, border = 1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, arrows, decorations.markings}
\begin{document}
\begin{tikzpicture}[decoration = {markings,
    mark = at position 0.5 with {\arrow{-latex}}
  }
  ]
  \draw[postaction = decorate] (0, 0) circle [radius = 2cm];
\end{tikzpicture}
\end{document}

I have also tried with {-latex} but that doesn't work either.

2

You only need the arrow tip name:

\documentclass[convert = false, border = 1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, arrows, decorations.markings}
\begin{document}
\begin{tikzpicture}[decoration = {markings,
    mark = at position 0.5 with {\arrow{latex}}
  }
  ]
  \draw[postaction = decorate] (0, 0) circle [radius = 2cm];
\end{tikzpicture}
\end{document}

enter image description here

  • Why does it take a just latex and not -latex here? – dustin Jul 11 '13 at 3:11
  • 2
    @dustin the arrow tip name is just latex; the syntax -latex means put an arrow tip of type latex at the end of the path. – Gonzalo Medina Jul 11 '13 at 3:12

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.