## 1. Numbered Figure/Table Captions in beamer

By default, Beamer does not produce numbered captions for tables as well as for figures. To produce numbered captions in beamer we used the command \setbeamertemplate{caption}[numbered] in the preamble.

Check the following example:

% Numbered captions in Beamer
\documentclass{beamer}

% Theme choice
\usetheme{Berlin}

% set the caption option of the template
\setbeamertemplate{caption}[numbered]

\begin{document}

\begin{frame}

% insert a figure
\begin{figure}
\includegraphics[width=0.7\textwidth]{Neural-Network.jpg}
\caption{The prefix is removed!}
\end{figure}

\end{frame}

\end{document}

Compiling this code yields:

where the default caption does not include numbering:

The image of the Neural Network can be downloaded from here: NN.jpg.

## 2. Modify Captions in beamer

In the following code the caption configuration is changed so as to produce the usual caption but without the prefix:

% Modify prefix caption
\documentclass{beamer}

% Theme choice
\usetheme{Berlin}

% set the caption option of the template
\setbeamertemplate{caption}{\raggedright\insertcaption\par}

% \raggedright is used to prevent bad justification
% and \par is used to end the paragraph

\begin{document}

\begin{frame}

% insert a figure
\begin{figure}
\includegraphics[width=0.7\textwidth]{Neural-Network.jpg}
\caption{The prefix is removed!}
\end{figure}

\end{frame}

\end{document}

Compiling this code yields: