2

As you can see below, LaTeX is formatting my captions like this: Figure : caption, while I would like them to be Figure: caption, without a space before colon. Here's a MWE:

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{figure}
  \caption{See, there's space before the colon.}
\end{figure}
\end{frame}
\end{document}

Which makes this: enter image description here

I tried this, but it didn't work:

\documentclass{beamer}
\usepackage{caption}
\DeclareCaptionLabelSeparator{colon}{: }
\begin{document}
\begin{frame}
\begin{figure}
  \caption{See, there's space before the colon.}
\end{figure}
\end{frame}
\end{document}
1

Use beamers facilities instead of using caption package.

\documentclass{beamer}
\setbeamertemplate{caption label separator}{: }  %% note the space after :, not before
\begin{document}
\begin{frame}
\begin{figure}
  \caption{See, there's space before the colon.}
\end{figure}
\end{frame}
\end{document}

enter image description here

-1

Solution: add

\usepackage{captions}
\captionsetup{labelsep = colon}

to the preamble. However, this is still a bug, because it doesn't happen in other document classes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.