我有一个自定义的 tikz 集(如下),如果它没有封闭,则会以箭头结尾。
\tikzset{
partial ellipse/.style args={#1:#2:#3}{
insert path={+ (#1:#3) arc (#1:#2:#3)}
}
}
当像这样使用时\draw[blue,-latex](5in,5in)[partial ellipse=90:210:1in and .5in] -- (5in,5in)--cycle;
,它没有箭头。但是当像这样使用时:
\draw[blue,-latex](5in,5in)[partial ellipse=90:210:1in and .5in] -- (5in,5in);
\draw[blue,-latex](5in,5in)[partial ellipse=90:210:1in and .5in];
它会以箭头结束线条。有办法禁用此功能吗?
完整代码示例:
\documentclass[tikz]{standalone}
\usepackage{tikz}
\usepackage{pgf}
\usepackage{xcolor}
\usetikzlibrary{patterns.meta,calc,hobby}
\pgfplotsset{compat=1.17}
\usepackage{pgfmath}
% I just included other packages i am using elsewhere in my document
\tikzset{
partial ellipse/.style args={#1:#2:#3}{
insert path={+ (#1:#3) arc (#1:#2:#3)}
}
}
\begin{document}
\begin{tikzpicture}
\draw[blue,-latex](5in,5in)[partial ellipse=90:210:1in and .5in] -- (5in,5in)--cycle;
\draw[blue,-latex](8in,8in)[partial ellipse=90:210:1in and .5in];
\end{tikzpicture}
\end{document}