如何在LaTeX中绘制复杂的流程图?

如何在LaTeX中绘制复杂的流程图?

在此处输入图片描述

如何在LaTeX中绘制复杂的流程图?

答案1

使用基本工具(mathtools\raisebox)并进行一些反复试验(不确定最终的圆形箭头):

\documentclass{article}

\usepackage{mathtools, amssymb}

\begin{document}

\[ \begin{rcases}
  \mathrm{A}\\[1ex]\mathrm{B}
\end{rcases}\implies \raisebox{-0.34\height}{$\begin{rcases}\mathrm{C}\\[1ex]\mathrm{D} \end{rcases}\implies \raisebox{0.53\height}{$\begin{rcases}\mathrm{F}\\[1ex]\mathrm{E} \end{rcases}\circlearrowleft$}$}\]%

\end{document} 

在此处输入图片描述

答案2

\documentclass[border = 5pt]{standalone}

\usepackage{relsize}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}


\begin{document}

\begin{tikzpicture}[
  my node/.style={font = \relsize{30}},
  brace/.style={decoration = {brace, raise = 5pt}, decorate},
  dblarrow/.style={thick, decoration={markings, mark = at position
      1 with {\arrow[semithick]{open triangle 60}}},
    double distance=1.4pt, shorten >= 5.5pt,
    preaction = {decorate},
    postaction = {draw,line width=1.4pt, white,shorten >= 4.5pt}}
  ]

  \node[my node] (A) {A};
  \node[my node, below = of A] (B) {B};
  \draw[brace] (A.north east) -- node[midway, outer sep = 10pt] (AB) {} (B.south east);

  \node[my node, right = of AB] (C) {C};
  \node[my node, below = of C] (D) {D};
  \draw[dblarrow] (AB.east) -- (C.west); 
  \draw[brace] (C.north east) -- node[midway, outer sep = 10pt] (CD) {} (D.south east);

  \node[my node, right = of CD] (E) {E};
  \node[my node, above = of E] (F) {F};
  \draw[dblarrow] (CD.east) -- (E.west); 
  \draw[brace] (F.north east) -- node[midway] (FE) {} (E.south east);

  \node[my node, right = of FE] (G) {G};
\end{tikzpicture}

\end{document}

在此处输入图片描述

答案3

虽然使用矩阵/表来完成您要做的事情确实是可行的,但我建议您看一下 Graphviz。

它使用文本表示您的项目关系并生成一个漂亮的图形,您可以将其导出为 PDF(并包含为图像)。

http://graphviz.org/_pages/Gallery/directed/cluster.png 在此处输入图片描述

相关内容