I would like to put a frame/box around an image including some text which is below it. In addition I want to be able to add a caption afterwards.
So far I manage to put a box around the image, but I want that it encapsulates the text as well.
I want to achieve this:
But I only managed this (to put the text where I want it and put a frame around the image):
\documentclass[11pt, a4paper, oneside]{report}
\usepackage[left=4cm,right=2cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{ragged2e}
\begin{document}
\begin{figure}[!htb]
\centering
\fbox{\includegraphics[width=\textwidth]{example.jpg}}
\justify \setstretch{0.75}{
\vspace{-1ex}\footnotesize Something long about the image which should be "part" of the image and bla-bla-bla. Maybe some more text so that it breaks the line sometime.}
\caption{This is a caption of a Figure which includes an image and some text below it.}
\label{fig:employment}
\end{figure}
\end{document}
I've read that as images are floats and texts are not, it is kind of tricky to do something like this. Is there any way to manage to do it? To me, it doesn't seem like a very strange thing to want to do.