我想用 Tikz 绘制下图。我在网上搜索了如何绘制带文字的弯曲箭头,但一无所获。
另一方面,我想知道如何将箭头指向左侧并且文本不颠倒。
\documentclass[tikz]{standalone}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[semithick,x=20mm, y=20mm]
\node[single arrow, draw,single arrow tip angle=100, align=center] [rotate=0] at (0,0) {Test \\ test test};
\node[single arrow, draw,single arrow tip angle=100, align=center] [rotate=180] at (1,0) {Test \\ test test};
\end{tikzpicture}
\end{document}
谁能帮助我 1. 绘制形状“弯曲的箭头” 2. 正确定位这些箭头
答案1
我实际上不会为此使用箭头节点,而是用箭头画出很粗的线,然后添加节点。但是,您需要 PGF 3.0.0 才能精细控制箭头参数:
\documentclass[border=0.125cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\tikzset{%
thick arrow/.style={
-{Triangle[angle=120:1pt 1]},
line width=1.5cm,
draw=gray
},
arrow label/.style={
text=white,
font=\sf,
align=center
},
set mark/.style={
insert path={
node [midway, arrow label, node contents=#1]
}
}
}
\begin{tikzpicture}
\draw [thick arrow]
(-6,0) -- (-3,0) [set mark={Processues \\ de d\'emarrage}];
\draw [thick arrow]
(-2,0) -- (-2,1.5)
arc (180:0:2 and 1.5) [set mark={Processus \\ de planification}]
-- (2,0.5);
\draw [thick arrow]
(2,0) -- (2,-1.5)
arc (360:180:2 and 1.5) [set mark={Processus \\ d'ex\'ecution}]
-- (-2,-0.5);
\draw [thick arrow]
(3,0) -- (6,0) [set mark={Processues \\ de cl\^oture}];
\end{tikzpicture}
\end{document}