그림 라벨을 제거하려면 어떻게 해야 하나요?

그림 라벨을 제거하려면 어떻게 해야 하나요?

슬라이드를 만들려고 하는데

\documentclass[11pt] {beamer}
\usepackage{caption}
\usepackage{graphicx}

\begin{document}

\section{my photos}
\begin{frame}
\footnotesize\textbf  Is this the same as previous figure? 
\begin{figure}[h!]
\caption{This is amazing photo}
\centering
\includegraphics[width=0.4\textwidth]{photo1.jpg}
\end{figure}
\end{frame}
\end{document}

이 파일은 작동하지만 캡션 앞에 그림 상단에 "그림"이 인쇄됩니다.

답변1

당신이 얻으려고하는 것이 이와 같은 것입니까?

\documentclass{beamer}
\usepackage[labelformat=empty]{caption} 

\begin{document}

\begin{frame}
\frametitle{my photos}
\footnotesize\textbf Is this the same as previous figure?
\begin{figure}[h!]
\caption{This is an amazing photo}
\centering
\includegraphics[width=0.4\textwidth]{TasmanianDevil.jpg}
\end{figure}
\end{frame}

\end{document} 

여기에 이미지 설명을 입력하세요

답변2

패키지를 사용할 필요는 없으며 caption다음과 같이 캡션에 대한 비머 템플릿을 수정할 수 있습니다.

\documentclass[11pt]{beamer}

\setbeamertemplate{caption}{%
  \raggedright
  \insertcaption\par
}

\begin{document}

\section{my photos}
\begin{frame}
\footnotesize\textbf{Is this the same as previous figure?} 
\begin{figure}
\caption{This is amazing photo}
%\centering
\includegraphics[width=0.4\textwidth]{example-image-duck}
\end{figure}
\end{frame}
\end{document}

여기에 이미지 설명을 입력하세요

문제와 관련 없음:

  • graphicx비머가 포함된 패키지는 필요하지 않습니다.

  • 비머에는 플로팅 메커니즘이 없으므로 [h!]와 같은 플로팅 지정자를 추가하는 것은 의미가 없습니다.

  • \centering그림은 필요하지 않습니다. 비머는 기본적으로 그림을 중심에 둡니다.

  • (한 글자만 굵게 표시하려는 경우가 \textbf{....}아니면 )\textbf ....

관련 정보