라텍스를 사용한 블록 다이어그램

라텍스를 사용한 블록 다이어그램

라텍스를 사용하여 간단한 블록 다이어그램을 만드는 방법 예를 들어 그림과 같이 블록 다이어그램을 만들고 싶습니다.여기에 이미지 설명을 입력하세요

답변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}

여기에 이미지 설명을 입력하세요

관련 정보