使用 Latex 的框圖

使用 Latex 的框圖

如何使用乳膠製作一個簡單的框圖,例如我想製作一個如圖所示的框圖。在此輸入影像描述

答案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}

在此輸入影像描述

相關內容