¿Cómo puedo quitar la etiqueta de la figura?

¿Cómo puedo quitar la etiqueta de la figura?

estoy intentando hacer diapositivas

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

Este archivo funciona pero imprime "Figura" encima de la figura antes del título.

Respuesta1

¿Es algo como esto lo que estás tratando de obtener?

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

ingrese la descripción de la imagen aquí

Respuesta2

No es necesario emplear el captionpaquete, puede modificar la plantilla del proyector para el título de esta manera:

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

ingrese la descripción de la imagen aquí

No relacionado con el problema:

  • no necesitas el graphicxpaquete con proyector

  • El proyector no tiene un mecanismo flotante, por lo que agregar un especificador flotante como [h!] no tiene sentido.

  • \centeringuna figura es innecesaria, el proyector centra las figuras de forma predeterminada

  • debería ser \textbf{....}en lugar de \textbf ....(a menos que intentes poner solo una letra en negrita)

información relacionada