# Latex picture caption without text [duplicate]

Possible Duplicate:
Remove colon in the caption of a figure if the caption is empty

I want to add a picture with caption Figure 1, but without any additional text. I want the autonumbering.

If I do this

\begin{figure}[h!]
\caption{}
\includegraphics{graphics}
\end{figure}


I got Figure 1: in the result, which looks ugly.

I want just Figure 1 in the text. I will explain elsewhere what the figure means. Can I do that?

-

## marked as duplicate by Werner, Count Zero, Gonzalo Medina, cmhughes, egregJun 11 '12 at 20:27

Package caption does this automatically.

\documentclass{article}
\pagestyle{empty}
\usepackage{caption}
\begin{document}

\begin{figure}[h]
\centering
\caption{}
\end{figure}

\begin{figure}[h]
\centering
\caption{Test}
\end{figure}


-
Thanks, that's it – Karel Bílek Jun 11 '12 at 20:26