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.

dustin
  • 18,617
  • 23
  • 99
  • 204

1 Answers1

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

Gonzalo Medina
  • 505,128