
我需要關閉以下圓形圖(在“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}