[Tex/LaTex] How to insert a picture without the name “figure”

beamercaptionshorizontal alignment

I am trying to put a figure with a subtitle but without the name "figure".

For example:

triangle

'This is a triangle'

and not put the name "Figure":

enter image description here

'Figure: This is a triangle'

I tried:

1.

\begin{figure}
\begin{center}
\includegraphics[scale=*]{fig.jpg}
\caption{*}
\end{center}
\end{figure}

2.

\begin{frame}
\includegraphics[scale=*]{fig.jpg}
\caption{*}
\end{frame}

And neither have worked.

Best Answer

Use the \caption* command from caption package.

\documentclass{article}

\usepackage{graphicx}

\usepackage{caption}

\begin{document}

\begin{figure}
  \centering
  \includegraphics{fig.jpg}
  \caption{This is a triangle.}
  \label{fig:tr1}
\end{figure}


\begin{figure}
  \centering
  \includegraphics{fig.jpg}
  \caption*{This is also a triangle.}
  \label{fig:tr2}
\end{figure}

\end{document}

enter image description here

enter image description here