
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}
Respuesta2
No es necesario emplear el caption
paquete, 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}
No relacionado con el problema:
no necesitas el
graphicx
paquete con proyectorEl proyector no tiene un mecanismo flotante, por lo que agregar un especificador flotante como [h!] no tiene sentido.
\centering
una figura es innecesaria, el proyector centra las figuras de forma predeterminadadebería ser
\textbf{....}
en lugar de\textbf ....
(a menos que intentes poner solo una letra en negrita)