I was trying to set a caption on an image that was placed within an mdframed box at the right side of the document. the structure is like
\begin{mdframed}[frametitle={my title},style = MyFrame] \label{box: storysn1}
\input{insbox}
\lipsum[1]
\InsertBoxR{2}{\enspace\includegraphics[width=0.39\textwidth]{images/annales.PNG}}
\lipsum[2]
\end{mdframed}
i tried using \caption inside \insertBoxR but it raise errors. does anyone know how to correctly set the caption in cases like this one? thanks
example of what i want to achieve ( ijust want a caption under the image)
what i get with /parbox
\parbox{5cm}{ \raggedleft \includegraphics[width = 5cm]{images/annales.PNG}}
\parbox
and use\captionof{figure}{Some caption}
after a blank line (requires thecaption
package).