-latex
为什么使用箭头时圆弧无法覆盖圆?可能是因为存在错误或数学计算错误?
平均能量损失
\documentclass[11pt,margin=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\draw (0:1cm) arc (0: 180:1cm) arc (180:0:1cm and 2cm);
\draw (0:1cm) arc (0:-180:1cm);
\draw[->] (0:1cm) arc (0: 80:1cm);
\draw[-latex] (0:1cm) arc (0:- 80:1cm);
\end{tikzpicture}
\end{document}
答案1
这是一个使用标记的解决方案。它不绘制任何额外的曲线。因此,不存在任何曲线重叠的情况。
\documentclass[11pt,margin=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.markings}
\begin{document}
\tikzset{
arrow at end/.style={
decorate,decoration={
markings,
mark=at position .999 with{
\arrow{#1};
}
}
}
}
\begin{tikzpicture}
\draw (0:1cm) arc (0: 180:1cm) arc (180:0:1cm and 2cm);
\draw (0:1cm) arc (0:-180:1cm);
\draw[arrow at end=>] (0:1cm) arc (0: 80:1cm);
\draw[arrow at end=latex](0:1cm) arc (0:- 80:1cm);
\end{tikzpicture}
\end{document}