I am using smartdiagram to make a figure in my document. I want to know how can I caption this figure. I am pasting sample code below.
\documentclass{article}
\usepackage{smartdiagram}
\begin{document}
\begin{center}
\caption{Cycle of Interaction}
\smartdiagram[bubble diagram]{Cycle of Environment,
Look, Plan, Act}
\end{center}
\end{document}
Best Answer
The
\smartdiagram
macro does not work as afloat
environment etc. socaption
is useless here, but since a diagram works as afigure
basically,\captionof{figure}{Cycle of Interaction}
should be sufficient.If
figure
isn't the correct name, there are basically two ways to improve this:Use
\captionsetup
to provide anothername=Diagram
, for exampleDefine a new floating environment, say,
diag
:I prefer the 2nd way with an extra floating environment, but that is a matter of taste.