平均能量损失
\documentclass[a4paper, 10pt]{report}
\usepackage{tikz}
\usetikzlibrary{angles,quotes}
\begin{document}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (A) at (2,0);
\coordinate (B) at (1.5,0.9);
\coordinate (C) at (1,1.73);
\draw[->](O) -- (A);
\draw[dotted](O) -- (B) node[right] {$q$};
\draw[->](O) -- (C);
\draw[fill=black] (B) circle (1 pt);
\pic [draw, -, "$\theta_1$", angle eccentricity=2] {angle = A--O--B};
\pic [draw, -, "$\theta_2$", angle eccentricity=2] {angle = B--O--C};
\end{tikzpicture}
\end{document}
我的输出
答案1
您可以使用angle radius
选项绘制更大的角度(我手动放置标签以避免与虚线发生碰撞)。
\documentclass[a4paper, 10pt]{report}
\usepackage{tikz}
\usetikzlibrary{angles,quotes}
\begin{document}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (A) at (2,0);
\coordinate (B) at (1.5,0.9);
\coordinate (C) at (1,1.73);
\draw[->](O) -- (A);
\draw[dotted](O) -- (B) node[right] {$q$};
\draw[->](O) -- (C);
\draw[fill=black] (B) circle (1 pt);
\pic [draw, -, "$\theta_1$", angle eccentricity=2] {angle = A--O--B};
\pic [draw, -, "$\theta_2$", angle eccentricity=2] {angle = B--O--C};
\pic [draw, -, "", angle eccentricity=2, angle radius=1.2cm] {angle = A--O--C};
\node at (1,1) {$\theta$};
\end{tikzpicture}
\end{document}
答案2
改编
- 使用不同的
angle radius=<distance>
结果
代码
\documentclass[a4paper, 10pt]{report}
\usepackage{tikz}
\usetikzlibrary{angles,quotes}
\begin{document}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (A) at (2,0);
\coordinate (B) at (1.5,0.9);
\coordinate (C) at (1,1.73);
\draw[->](O) -- (A);
\draw[dotted](O) -- (B) node[right] {$q$};
\draw[->](O) -- (C);
\draw[fill=black] (B) circle (1 pt);
\pic [draw, -, "$\theta_1$", angle eccentricity=1.5, angle radius=4mm] {angle = A--O--B};
\pic [draw, -, "$\theta_2$", angle eccentricity=1.5, angle radius=6mm] {angle = B--O--C};
\pic [draw, -, "$\theta$", angle eccentricity=1.2, angle radius=11mm] {angle = A--O--C};
\end{tikzpicture}
\end{document}