2
\documentclass{beamer}
\usepackage{caption}
\begin{document}
\begin{frame}{Title}
\begin{figure}[ht]
\centering
\includegraphics[width=0.9\linewidth]{picture.jpg}
\caption{Source: something}
\end{figure}
\end{frame}
\end{document}

How can I remove the numbering from the caption in the figure environment? I tried with caption* and it didn't work.

Karlo
  • 3,257
Great
  • 111

1 Answers1

2

Here an answer without \usepackage{caption}

\documentclass{beamer}

\setbeamertemplate{caption}{%
    \insertcaption\par
}
\setbeamertemplate{caption label separator}{}

\begin{document}

\begin{frame}{Title}
\begin{figure}
\includegraphics[width=0.9\linewidth]{pic}
\caption{Source: something}
\end{figure}
\end{frame}
\end{document}

enter image description here


Comments:

  1. You don't need \centering, figures are automatically centred in beamer.
  2. In a documentclass without floats, like beamer, you don't need to specify the positioning with [ht]
  • I'm sure the problem is with me, but it still doesn't work. – Great Mar 30 '16 at 16:18
  • @Great Did you try with exactly the document from my answer? If yes, which version are you using? I am on texlive 2015. – samcarter_is_at_topanswers.xyz Mar 30 '16 at 16:20
  • I found the problem, I had a package:\usepackage[magyar]{babel} that I was told is necessary for my language, but it turned out that was a lie, without that it finally works, thanks for your help. – Great Mar 30 '16 at 16:28
  • @Great Btw, can you please check your old questions, if the answers given there solves them eventually accept them if they do? Referring to http://tex.stackexchange.com/questions/251117/how-to-center-the-numbers and http://tex.stackexchange.com/questions/251503/how-can-i-add-more-line-to-my-beamer-presentation-title-side – samcarter_is_at_topanswers.xyz Mar 30 '16 at 16:29
  • https://sourceforge.net/p/latex-caption/tickets/41/ –  May 22 '16 at 18:33