TikZ:在 decorations.markings 中使用 -latex 箭头

TikZ:在 decorations.markings 中使用 -latex 箭头

有没有办法让-latex箭头在使用时发挥作用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}

我也尝试过,with {-latex}但也没有用。

答案1

您只需要箭头名称:

\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}

在此处输入图片描述

相关内容