LaTeX에서 산업 회로도를 그리는 방법은 무엇입니까?

LaTeX에서 산업 회로도를 그리는 방법은 무엇입니까?

LaTeX에서 다음 다이어그램을 만들 수 있습니까? 본체에 관심이 있는데, 상자 안의 어떤 색상이라도 괜찮습니다.

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

답변1

\documentclass{standalone}
\usepackage{tikz}

\usetikzlibrary{positioning}
\usetikzlibrary{decorations.pathreplacing}

\begin{document}


\begin{tikzpicture} [align=left] 
    \node [draw] (home) {Home\\(capital-abundant)};
    \draw (home.east) -- ++(2,0) node [above] (cloth) {Cloth}
        -- ++(2,0) node [above] (food) {Food} -- ++(1,0) node [coordinate] (topend) {};
    \node[below=of home] (mid) {};
    \draw[dashed] (cloth |- mid) -- (topend |- mid);
    \node [draw, below=of mid] (foreign) {Foreign\\(labor-abundant)};
    \draw (foreign.east) -- (topend |- foreign);
    \draw[->] (cloth) -- (cloth |- foreign);
    \draw[->] (food |- mid) -- (food);
    \node [coordinate,right=0.1cm of cloth] (c1) {};
    \draw[->] (c1 |- foreign) -- (c1 |- mid);
    \draw[decorate,decoration={brace, amplitude=4pt}] 
            (topend) -- (topend |- mid) node[midway, right=3pt]{Interindustry};
    \draw[decorate,decoration={brace, amplitude=4pt}] 
            (topend |- mid) -- (topend |- foreign) node[midway, right=3pt]{Intraindustry};
\end{tikzpicture}

\end{document}

시사

관련 정보