I am new to Beamer and am trying to create a slide that has four figures, and I want to emphasize two figures with a red box.
This setup makes the four figures nicely, based on the accepted answer here:
\usepackage{caption}
\captionsetup{labelformat=empty,labelsep=none}
\begin{frame}
\frametitle{Slide Title}
\begin{columns}[t]
\column{.5\textwidth}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 1}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 2}
\column{.5\textwidth}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 3}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 4}
\end{columns}
\end{frame}
When I try to add the red boxes (per this question/answer, the figures shift around and off the page. How can I keep them in the same position as above and just have a thick red outline to emphasize the first two (left two) figures?
\usepackage{caption}
\captionsetup{labelformat=empty,labelsep=none}
\usepackage{fancybox}
\begin{columns}[t]
\fboxsep=1pt
\fboxrule=2pt
\def\bordercolor{red}
\def\backgroundcolor{white}
\cornersize{0.1}
\column{.5\textwidth}
\fcolorbox{\bordercolor}{\backgroundcolor} {\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 1}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 2}
\column{.5\textwidth}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 3}
\includegraphics[width=\columnwidth,height=3cm]{path/to/my.jpg}
\captionof{figure}{Comment 4}
\end{columns}
\end{frame}
