
Как вы можете видеть ниже, LaTeX форматирует мои подписи так: Figure : caption
, в то время как я хотел бы, чтобы они были Figure: caption
, без пробела перед двоеточием. Вот MWE:
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{figure}
\caption{See, there's space before the colon.}
\end{figure}
\end{frame}
\end{document}
Что делает это:
Я попробовал это, но это не сработало:
\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
Используйте beamer
возможности s вместо использования caption
пакета.
\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}
решение2
Решение: добавить
\usepackage{captions}
\captionsetup{labelsep = colon}
к преамбуле. Однако это все еще ошибка, поскольку в других классах документов она не встречается.