[Tex/LaTex] Bold and colored figure caption label in beamer

beamerbeamerpostercaptionsfloats

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}

Best Answer

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}

enter image description here

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}
Related Question