
Como puede ver a continuación, LaTeX está formateando mis subtítulos de esta manera: Figure : caption
, mientras que me gustaría que fueran Figure: caption
, sin un espacio antes de dos puntos. Aquí hay un MWE:
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{figure}
\caption{See, there's space before the colon.}
\end{figure}
\end{frame}
\end{document}
Lo que hace esto:
Intenté esto, pero no funcionó:
\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}
Respuesta1
Utilice beamer
las instalaciones en lugar de utilizar caption
el paquete.
\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}
Respuesta2
Solución: agregar
\usepackage{captions}
\captionsetup{labelsep = colon}
al preámbulo. Sin embargo, esto sigue siendo un error, porque no ocurre en otras clases de documentos.