Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am writing a slide in Latex, however I wonder if there is a way to remove the word "Figure" when inserting an image in Latex ?

\begin{figure}[!h]
\centering
\includegraphics[width=3cm, height=2cm]{picture.jpg}
\caption{Favorite Picture}
\end{figure}

Outuput:
Figure: Favorite Picture

I want to get this, instead:
Favorite Picture

How could I do that ?

EDIT:

Here is a sample of the code I used:

\documentclass[10pt]{beamer}
\usepackage{graphicx}
\begin{document}
\section{Introduction}
\subsection{About me}
\begin{frame}{Introduction}
\begin{figure}
\includegraphics[width=6cm, height=1cm]{picture.png}
\caption{  Favorite Picture}
\end{figure}    
\end{frame}
\end{document}
share|improve this question
    
Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Christian Hupfer Aug 25 at 8:01
    
@ChristianHupfer thank you for the remark. I edited my question –  user61279 Aug 25 at 8:04

1 Answer 1

up vote 6 down vote accepted

According to chapter 16 of the beamer package documentation, you can use a template to change elements of a presentation design. The options for the caption element are described in section 12.6 of the documentation. According to this, you need \setbeamertemplate{caption}{\insertcaption}.

\documentclass[10pt]{beamer}
\usepackage{graphicx}
\setbeamertemplate{caption}{\insertcaption}
\begin{document}
\section{Introduction}
\subsection{About me}
\begin{frame}{Introduction}
\begin{figure}
\rule{4cm}{4cm}
\caption{  Favorite Picture}
\end{figure}
\end{frame}
\end{document}

slide

share|improve this answer
    
thank you very much, it works. –  user61279 Aug 25 at 8:25
    
Why the spaces before Favorite? –  egreg Aug 25 at 9:08
    
@egreg --- copied from the MWE; I have no idea why they are there. –  Ian Thompson Aug 25 at 9:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.