我需要闭合下面的圆形图(在“ee”后向“aa”添加一个额外的箭头)。你能帮我吗,代码如下:
\usesmartdiagramlibrary{additions} % required in the preamble
\usetikzlibrary{arrows} % required in the preamble
\bigskip
\begin{minipage}[c][8cm]{\textwidth}
\centering
\smartdiagramset{
uniform color list=orange!60!yellow for 5 items,
circular final arrow disabled=true,
circular distance=2.25cm,
arrow tip=to,
arrow line width=2pt,
additions={
additional item bottom color=orange!60!yellow,
additional item border color=gray,
additional item shadow=drop shadow,
additional item offset=0.65cm,
additional arrow line width=2pt,
additional arrow tip=to,
additional arrow color=orange!60!yellow,
}
}
\smartdiagramadd[circular diagram]{
aa,bb,cc,dd,ee
}{
above of module1/Start,right of module5/End
}
\smartdiagramconnect{to-}{module1/additional-module1}
\smartdiagramconnect{-to}{module5/additional-module2}
\end{minipage}
答案1
默认情况下circular diagram
是关闭,但你通过添加禁用了最后一个箭头
circular final arrow disabled=true
到\smartdiagramset
。只需删除该行即可。
下面是我修改过的完整代码minipage
。对于此屏幕截图,我\fbox
在周围添加了一个minipage
,以显示的大小minipage
适合图表:
\documentclass{article}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions} % required in the preamble
\begin{document}
\begin{minipage}[b][7cm]{\textwidth}
\centering
\smartdiagramset{
uniform color list=orange!60!yellow for 5 items,
%circular final arrow disabled=true,
circular distance=2.25cm,
arrow tip=to,
arrow line width=2pt,
additions={
additional item bottom color=orange!60!yellow,
additional item border color=gray,
additional item shadow=drop shadow,
additional item offset=0.65cm,
additional arrow line width=2pt,
additional arrow tip=to,
additional arrow color=orange!60!yellow,
}
}%
\smartdiagramadd[circular diagram]{
aa,bb,cc,dd,ee
}{
above of module1/Start,right of module5/End
}%
\smartdiagramconnect{to-}{module1/additional-module1}%
\smartdiagramconnect{-to}{module5/additional-module2}%
\end{minipage}
\end{document}