빔머 캡션에서 콜론 앞의 공백

빔머 캡션에서 콜론 앞의 공백

아래에서 볼 수 있듯이 LaTeX는 내 캡션을 다음과 같이 형식화합니다. 그러나 저는 콜론 앞에 공백 없이 Figure : caption을 원합니다 . Figure: captionMWE는 다음과 같습니다.

\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}

서문에. 그러나 이는 다른 문서 클래스에서는 발생하지 않기 때문에 여전히 버그입니다.

관련 정보