I have a problem about positioning of the caption. My code of the figure is like this:
\usepackage[format=hang]{caption}
\begin{figure}[!h]
\centering
\captionsetup{justification=raggedright,singlelinecheck=false}
\captionbox{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.}{
\fbox{\includegraphics[width=4in]{basicLDPC}}}
\label{fig:dummy}
\end{figure}
The output is :
The problem is the caption must be at above of the figure. How can I do that?
Edited
Is there any possible way to add a text after the figure like a footnote to write the source of it?
Thanks
\captionbox
come from? And please do not post code snippets.\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.