use the caption format without printing the label:
\PassOptionsToPackage{demo}{graphicx}% only for demo
\documentclass{beamer}
\usepackage[font=footnotesize,labelformat=empty,
justification=raggedright,
% singlelinecheck=false
]{caption}
\begin{document}
\begin{figure}
\includegraphics{tiger}
\caption{This image belongs to foo}
\end{figure}
\end{document}
You don't really need the figure
environment since you are not providing captions (beamer
, in any case, deactivates the floating mechanism); so you can simply say:
\PassOptionsToPackage{demo}{graphicx}
\documentclass[slidestop,compress,11pt,xcolor=dvipsnames]{beamer}
\usefonttheme[onlymath]{serif}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{multicol}
\usepackage{lmodern}
\usepackage{lipsum}
\usepackage{marvosym}
\begin{document}
\begin{frame}
\begin{columns}[t]
\column{.5\textwidth}
\centering
\includegraphics[width=5cm,height=3.5cm]{lab1}\\
\includegraphics[width=5cm,height=4cm]{lab2}
\column{.5\textwidth}
\centering
\includegraphics[width=5cm,height=4cm]{lab3}\\
\includegraphics[width=5cm,height=4cm]{lab4}
\end{columns}
\end{frame}
\end{document}
Of course, you might need to adjust the width and or height of your images.
The line
\PassOptionsToPackage{demo}{graphicx}
was only included to replace actual figures with black rectangles; delete that line from your actual code.
On a side note, the slidestop
class option is obsolete, so you should load the class using the t
option instead:
\documentclass[t,compress,11pt,xcolor=dvipsnames]{beamer}
Best Answer
Gonzalo Medina said in the linked question that you don't need the
figure
environment if there are not captions. But inversely, you can use this environment if you want captions:If you are not happy with float behavior in Beamer, alternatively you can use the
\figcaption
of thecattdef
package (or\captionof{figure}{...}
ofcaption
package, but not inside macro as in this example):