有没有办法让-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}