我可以使用箭头提示Fast Triangle
(3.0.0 手册第 212 页)表示完整路径吗?(或者让它看起来像这样)
我目前得到的结果
(需要 TikZ 3.0.0)
\documentclass[margin=5]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{bending}
\begin{document}
\begin{tikzpicture}
\node[circle, draw] (a) {a};
\node[circle, draw, right=of a] (b) {b};
\draw [f/.tip = Fast Triangle,
line width=1ex,
{Triangle Cap[reversed] }-{[bend] Triangle Cap[] . ffffff}]
(a) to [bend left] (b);
\end{tikzpicture}
\end{document}
结果
答案1
我能够使用该decorations
库创建类似的东西。(不需要 tikz 3.0):
但我无法让它直接指向节点。
\documentclass[margin=5]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\node[circle, draw] (a) {a};
\node[circle, draw, right=of a] (b) {b};
\draw [decoration={
markings,
mark=between positions 0 and 1 step 4pt with {
\node[fill=black,signal from=west, signal to=east,signal, transform shape,minimum width=2pt,minimum height=5pt, inner sep=0]{};}}, decorate]
(a) to [bend left] (b);
\end{tikzpicture}
\end{document}