
Como você pode ver abaixo, o LaTeX está formatando minhas legendas assim: Figure : caption
, enquanto eu gostaria que fossem Figure: caption
, sem espaço antes dos dois pontos. Aqui está um MWE:
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{figure}
\caption{See, there's space before the colon.}
\end{figure}
\end{frame}
\end{document}
O que torna isso:
Eu tentei isso, mas não funcionou:
\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}
Responder1
Use beamer
as instalações em vez de usar caption
o pacote.
\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}
Responder2
Solução: adicione
\usepackage{captions}
\captionsetup{labelsep = colon}
ao preâmbulo. Porém, isso ainda é um bug, pois não acontece em outras classes de documentos.