2

I have an image

enter image description here

where as x are 3 diagrams. As there is empty space on the left, I was wondering if it is possible to put the caption of the image within the picture.

Claudio
  • 23
  • 3

1 Answers1

4

This is a solution which does not assume any package besides graphicx for including the images. The $ around the last figure is to ensure the vertical centering of the caption.

\documentclass{article}
\usepackage{graphicx}
\usepackage{mwe}
\def\image{\includegraphics[width=0.45\textwidth]{example-image-a}}

\begin{document}
\begin{figure}
\image\hfill\image\par
\vskip 5mm
\begin{minipage}[c]{0.45\textwidth}
\caption{This is the caption, it may be long}
\end{minipage}\hfill%
$\vcenter{\hbox{\image}}$\par
\end{figure}
\end{document}

Result

JLDiaz
  • 55,732
  • I thought the OP has a single image and wants to overlay the caption over the bottom left corner (although that isn't clear:-) but my comment about depending on the package was that some classes position the caption in the float handler irrespective of where \caption appears in the source. – David Carlisle Jun 11 '14 at 16:59
  • @DavidCarlisle I thought about the "single image" interpretation after posting my answer and looking at the "related question" comment. I didn't think about the other problem you mention. Thanks for clarification. – JLDiaz Jun 11 '14 at 17:05