# Bold and colored figure caption label in beamer?

I'm working on a beamer poster and would like my figure labels to be both bold font and colored. I'm using the command \captionsetup[figure]{labelformat=simple, labelsep=period, labelfont=bf} to configure the caption, which gives me the bold font, but sets the color back to black. Anyone know how to get both?

## Edit

I was able to get the desired effect by placing the following lines in the header:

\usepackage{caption}
\DeclareCaptionLabelFormat{mycaption}{\usebeamercolor[fg]{caption name}#1 #2. }
\captionsetup[figure]{labelformat=mycaption, labelsep=none, labelfont=bf}


No need to use the caption package for this; use

\setbeamerfont{caption name}{series=\bfseries}
\setbeamertemplate{caption label separator}[period]


A complete example:

\documentclass{beamer}
\usepackage{beamerposter}

\setbeamerfont{caption name}{series=\bfseries}
\setbeamertemplate{caption label separator}[period]

\begin{document}

\begin{frame}
\begin{figure}
\caption{test}
\end{figure}
\end{frame}

\end{document}


If you want to use the caption package for this (make sure your caption package is updated):

\documentclass{beamer}
\usepackage{beamerposter}
\usepackage{caption}

\DeclareCaptionLabelFormat{mycaption}{\usebeamercolor[fg]{caption name}#1#2}
\captionsetup[figure]{labelformat=mycaption, labelsep=period, labelfont=bf}

\begin{document}

\begin{frame}
\begin{figure}
\caption{test}
\end{figure}
\end{frame}

\end{document}

• Thanks! but I'm also being asked to change the colon to a period, for formatting reasons. Is there a way to do that without the caption package? It seems like using caption interferes with the settings from beamer. Sep 29 '15 at 16:31
• Oh wait... that command is also making the caption itself bold. That's not what I need. I just want the part that says "Figure. 1" to be bold. Sep 29 '15 at 16:35