I tried to draw this diagram and did it differently; however, when added to my book template, it went outside, so I tried to show a standalone, and it looked cropped. How can I:
- fix the cropping of the diagram
- improve it to make it look closer to the original, or is it currently acceptable?
My Code
\documentclass[preview]{standalone}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\usetikzlibrary{arrows,quotes,calc,decorations.text,positioning}
\begin{document}
\begin{figure}[h]
\centering
\smartdiagramset{uniform color list=teal!60 for 7 items,
module x sep=3.75,
back arrow distance=0.75,
sequence item border color=black,
uniform arrow color=true,
arrow color=gray!50!black,
circular distance=5cm,
font=\large,
text width=2.5cm,
module minimum width=2.5cm,
module minimum height=1.5cm,
arrow line width=2.5pt,
arrow tip=to,
}
\smartdiagramadd[circular diagram:clockwise]{
Designing \& manufacturing,Distribution,Consumption \& Use,Disposal, Recycling,Raw material processing
}
{}
\begin{tikzpicture}[overlay]
\draw[stealth-,
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align={left indent={.1\dimexpr\pgfdecoratedpathlength\relax}},
text={Landfill},
raise=5pt}}]
([xshift=-4cm,yshift=-2cm]module5.south) to[out = 0, in = 270, looseness = 1.91] (module5.south);
\draw[-stealth,
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align=center,
text={Renewable resources},
raise=5pt}}]
(module5.south west) to[out = 225, in = 180, looseness = .975] (module6.west);
\draw[stealth-,
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align=center,
text={Non-renewable resources},
raise=5pt}}]
([xshift=-6cm,yshift=-2cm]module1.south) to[out = 0, in = 180, looseness = 1.1] (module1.west);
\draw[-stealth, %bend left=15
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align=center,
text={Manufacture and refurbish},
raise=5pt}}]
([xshift=.5cm]module5.north west) to[bend left=15,out = 105, in = 205, looseness = .75] ([xshift=.5cm]module2.south west);
\draw[-stealth,
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align=center,
text={Share},
raise=5pt}}]
(module3.south west) to[out = 225, in = 135, looseness = 4] (module3.north west);
\draw[-stealth,
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align={left indent={.45\dimexpr\pgfdecoratedpathlength\relax}},
text={Reuse and redistribute},
raise=5pt}}]
([xshift=-.75cm]module3.south) to[out = 270, in = 240, looseness = 3] (module2.south);
\draw[stealth-,
line width=1mm,
red!40,
dashed,
postaction={decorate,
decoration={text along path,
text align=center,
text={Repair product life extension},
raise=-15pt}}]
(module2.north east) to[out = 75, in = 315, looseness = 1.75] (module3.south east);
% \draw[help lines, gray, dashed, step=1] (0,0) grid (14,12);
\end{tikzpicture}
\end{figure}
\end{document}





figureinsidestandalone. I don't see no use for thepreviewoption. Usetikzinstead. – Qrrbrbirlbel May 12 '23 at 10:18overlaythis will make TikZ not evaluate the bounding box correctly and thenstandalone(orpreview) can't figure out where it actually ends. – Qrrbrbirlbel May 12 '23 at 13:45