I am using SmartDiagram with an additional module in a figure environment. However the additional module is being drawn outside the bounds of the figure environment:
How do I get the figure so it does not overlap the text?
Here is the current code I have:
\documentclass{article}
\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\begin{document}
Some lines of text: these should be above the diagram.
\begin{figure}[h]
\centering
\smartdiagramset{
circular distance=36mm,
text width=35mm,
module minimum width=35mm,
module minimum height=15mm,
module shape=rectangle,
arrow tip=to,
uniform arrow color=true,
arrow color=gray!50!black,
border color=black,
uniform color list=white for 6 items,
additions={
additional item offset=15mm,
additional item text width=35mm,
additional item height=15mm,
additional item shape=rectangle,
additional item border color=black,
additional item shadow=drop shadow,
additional arrow color=gray!50!black,
}
}
\smartdiagramadd[circular diagram:clockwise]{
{Second Box (2)},
{Third Box (3)},
{Fourth Box (4)},
{Fifth Box (5)},
{Sixth Box (6)}
}{
above of module1/{First Box (1)
}
}
\smartdiagramconnect{-to}{additional-module1/module1}
\caption{Example diagram.}
\end{figure}
\end{document}
overlay
option. (Page 7 of the manual.) However, the solution suggested is misleading, at best.