0

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.

5
  • tex.stackexchange.com/questions/127354/… -Helped me with the color.
    – Kidja
    Commented Feb 8, 2015 at 1:32
  • possible duplicate of Subcaption with Beamer
    – Amar
    Commented May 31, 2015 at 16:20
  • \usepackage[...]{caption} should work with beamer. If not, please fill out a ticket: sourceforge.net/p/latex-caption/tickets
    – user2574
    Commented Aug 12, 2016 at 8:18
  • @AxelSommerfeldt I think \usepackage[...]{ca‌​ption} has no effect whatsoever. I'll report it. Thanks...
    – hola
    Commented Aug 15, 2016 at 14:52
  • @pushpen.paul I just inserted \usepackage[font=normalfont, labelfont={color=red,bf}]{caption} in your example document and it has an effect here., at least on the main figure caption. However, of course this does not have any effect on the sub-captions since the (ancient) subfigure package is not using these options. Only subfig and subcaption uses them.
    – user2574
    Commented Aug 16, 2016 at 7:49

1 Answer 1

1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .