![TikZ:如何向用 pic 语法绘制的圆弧添加箭头?](https://linux22.com/image/373017/TikZ%EF%BC%9A%E5%A6%82%E4%BD%95%E5%90%91%E7%94%A8%20pic%20%E8%AF%AD%E6%B3%95%E7%BB%98%E5%88%B6%E7%9A%84%E5%9C%86%E5%BC%A7%E6%B7%BB%E5%8A%A0%E7%AE%AD%E5%A4%B4%EF%BC%9F.png)
这个问题继续我的其他。
我的代码:
\documentclass{scrartcl}
\usepackage{stanli}
\usetikzlibrary{
angles,
quotes
}
\begin{document}
\begin{tikzpicture}
%the points
\point{right above}{3}{1.5};
\point{above}{1}{2};
\point{below}{0}{0};
%the hairline
\draw
(above) -- (below);
%the coordinate system
\draw
[
<->,
dashed
] (2.25, 2) node[above] {$x$} -| node[
sloped,
above,
at end
] {$z$} (1, 0);
%the arc between the axes (for the pic syntax see page 255 of the TikZ & PGF manual)
\coordinate (A) at (below);
\coordinate (B) at (above);
\coordinate (C) at (1, 0);
\pic[
draw,
angle radius = 10mm,
angle eccentricity = .75,
"$\varphi$"
] {angle};
%hinged support
\support{1}{above}[180];
\hinge{1}{above};
%the mass
\node[
circle,
draw,
fill = white
] at (below) {$m$};
\end{tikzpicture}
\end{document}
生成:
我希望:
我该怎么做?
提前感谢您的努力!
答案1
不确定这是否是语法但是有效:
\documentclass{scrartcl}
\usepackage{stanli}
\usetikzlibrary{
angles,
quotes
}
\begin{document}
\begin{tikzpicture}
%the points
\point{right above}{3}{1.5};
\point{above}{1}{2};
\point{below}{0}{0};
%the hairline
\draw
(above) -- (below);
%the coordinate system
\draw
[
<->,
dashed
] (2.25, 2) node[above] {$x$} -| node[
sloped,
above,
at end
] {$z$} (1, 0);
%the arc between the axes (for the pic syntax see page 255 of the TikZ & PGF manual)
\coordinate (A) at (below);
\coordinate (B) at (above);
\coordinate (C) at (1, 0);
\pic[
draw,<-, %HERE
angle radius = 10mm,
angle eccentricity = .75,
"$\varphi$"
] {angle};
%hinged support
\support{1}{above}[180];
\hinge{1}{above};
%the mass
\node[
circle,
draw,
fill = white
] at (below) {$m$};
\end{tikzpicture}
\end{document}