答案1
这只是尝试一些“新”的东西:从foreach
循环中传递样式。有效。只需要密钥/.expanded
。从技术上讲,这应该可以回答您的问题。我不知道它是否回答了您想要问的问题,因为如今有效的水晶球很少见。
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{chains,decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[node distance=.8cm, start chain=going right,font=\sffamily,
pft/.style={rectangle,draw,thick,text width=8em, minimum height=3em,text centered,on chain},
every join/.style={-latex, thick}]
\path foreach \X [count=\Y] in
{{draw=none},{pin=above:text},,{pin=below:text},,{pin=above:text},{draw=none,align=left}}
{node[join,pft,style/.expanded=\X] (node \Y){text}};
\begin{scope}[decoration=brace,thick]
\foreach \X in {2,3}
{\draw[decorate] ([yshift=-1ex]node \X.south east) -- ([yshift=-1ex]node \X.south west)
node[midway,below]{text};}
\end{scope}
\end{tikzpicture}
\end{document}