[Tex/LaTex] Stylizing sub-figure caption in beamer

beamercaptionssubcaption

When I use

\documentclass{beamer}

\setbeamertemplate{caption}[numbered]
\usepackage{subfigure}

\begin{document}
\begin{frame}

\begin{figure}
\subfigure[Subfig 1]{
}
\hfil
\subfigure[Subfig 2]{
}
\caption{Figure}
\end{figure}

\end{frame}

\end{document}

, it gives

. Note that the font color of the figure caption and sub-figure captions are differnt. Now, how can I stylize (i.e., change color, change size, make bold, use roman numerals etc.) the sub-figure captions? I noticed that something like \usepackage[font=normalfont, labelfont={red,bf}]{caption} does not work with beamer.

Best Answer

Brute force solution: redefine \thesubfigure to use the colour you want:

\documentclass{beamer}

\setbeamertemplate{caption}[numbered]
\usepackage{subfigure}

\renewcommand{\thesubfigure}{\protect\usebeamercolor[fg]{caption name}\relax(\arabic{subfigure})}


\begin{document}
    \begin{frame}

        \begin{figure}
            \subfigure[Subfig 1]{
            }
            \hfil
            \subfigure[Subfig 2]{
            }
            \caption{Figure}
        \end{figure}

    \end{frame}

\end{document}

enter image description here