Smart Diagram 水平流程图

Smart Diagram 水平流程图

我想在下图中将我的 DT 块连接到 LL 在此处输入图片描述

以下代码为:

\begin{center}
\begin{figure}


\smartdiagramset{set color list={blue!10, blue!30,blue!50},back arrow disabled=true,
additions={
additional item offset=0.4cm,
additional arrow color=blue!30,
additional arrow tip=stealth,
additional arrow line width=1pt,
additional item border color=gray,
additional item shape=rounded corners,
additional item bottom color=blue!30,
additional item shadow=drop shadow
}
}
\smartdiagramadd[flow diagram:horizontal]{WRA, LL, CM}{
above of module2/DT
}
%\smartdiagramconnect{->}{module2/additional-module2n}
\end{figure}
\end{center

}

但是,当我尝试将新块连接到模块 2 时,出现错误。提示“additional-module2”未知。有什么提示吗?

答案1

编辑: 您可以通过两种方式解决您的问题:

  • 添加additions代码行additional connections disabled=false,
  • 或者向图表代码添加\smartdiagramconnect{to-}{module2/additional-module1}

第一个例子:

\documentclass[rgb]{article}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}

\begin{document}
    \begin{figure}
    \centering
\smartdiagramset{set color list={blue!10, blue!30,blue!50},back arrow disabled=true,
additions={
additional item offset=0.4cm,
additional connections disabled=false,  % NEW
additional arrow color=red,             % changed color ...
additional arrow tip=stealth,
additional arrow line width=2pt,        % changed thickness
additional item border color=gray,
additional item shape=rounded corners,
additional item bottom color=blue!30,
additional item shadow=drop shadow
}
}
\smartdiagramadd[flow diagram:horizontal]%
    {WRA, LL, CM}%
    {above of module2/EDT}
%
\caption{Smart diagram}
\label{fig:smartdiagram}
    \end{figure}
\end{document}

第二种情况:

\documentclass[rgb]{article}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}

\begin{document}
    \begin{figure}
    \centering
\smartdiagramset{set color list={blue!10, blue!30,blue!50},back arrow disabled=true,
additions={
additional item offset=0.4cm,
additional arrow color=red,             % changed color ...
additional arrow tip=stealth,
additional arrow line width=2pt,        % changed thickness
additional item border color=gray,
additional item shape=rounded corners,
additional item bottom color=blue!30,
additional item shadow=drop shadow
}
}
\smartdiagramadd[flow diagram:horizontal]%
    {WRA, LL, CM}%
    {above of module2/EDT}
\smartdiagramconnect{to-}{module2/additional-module1}
%
\caption{Smart diagram}
\label{fig:smartdiagram}
    \end{figure}
\end{document}

两种情况下的结果都是一样的:

在此处输入图片描述

相关内容