I am using the subfig
package in Beamer to stack two images on top of each other. I'm using \captionsetup[subfigure]{labelformat=empty}
to get rid of the figure prefixes, but I am having trouble adding captions. My goal is two images (stacked, not side-by-side), with a caption under each image, but no prefix ("(a)") on the captions.
I'm trying to follow the example in Section 5.3 in the subfig docs, and here are the troubles I am having:
Here, the caption is split across two lines (and the second caption is gone, probably off the slide?). I also would like the images closer together (\label{fig:a}} \vspace{1em}
does not change the output).
\usepackage{caption}
\captionsetup{labelformat=empty,labelsep=none}
\captionsetup[subfigure]{labelformat=empty}
\usepackage{fancybox}
\usepackage{subfig}
\begin{document}
\begin{frame}
\begin{figure}
\centering
\subfloat[][]{\includegraphics[height=3cm]{C:/Users/me/Desktop/Capture.jpg}
\label{fig:a}}
\caption look at dis face \\
\subfloat[][]{\includegraphics[height=3cm]{C:/Users/me/Desktop/Capture.jpg}
\label{fig:b}}
\caption feed me
\end{figure}
\end{frame}
\end{document}
And in this effort, the prefixes are back and the caption is on the bottom. I am trying for something like the first effort above, with a caption under each figure.
\begin{frame}
\begin{figure}
\centering
\subfloat[][]{\includegraphics[height=3cm]{C:/Users/me/Desktop/Capture.jpg}
\label{fig:a}} \\
\subfloat[][]{\includegraphics[height=3cm]{C:/Users/me/Desktop/Capture.jpg}
\label{fig:b}}
\caption[]{ \subref{fig:a} look at dis face \subref{fig:b} feed me}
\end{figure}
\end{frame}
Best Answer
Like the following image?
With
\subcaptionbox
defined in thesubcaption
package: