# Change caption name of figures

How can I modify the caption name of a figure? For example I have

\caption{This is a figure.}


and by default the caption appears as

Figure 1: This is a figure.

However I want

Fig.1 - This is a figure.

-

First, you have to redefine \figurename. Without using the babel package:

\renewcommand{\figurename}{Fig.}


With babel (and English as language):

\addto\captionsenglish{\renewcommand{\figurename}{Fig.}}


For changing the separator between label and caption text, I recommend the caption package.

\documentclass{article}

\renewcommand{\figurename}{Fig.}

\usepackage[labelsep=endash]{caption}

\begin{document}

\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{This is a figure}
\end{figure}

\end{document}


EDIT: In case anyone wonders how to change the caption name of tables: Redefine \tablename.

-
Ok, but the figure is numbered like Fig. 0.0.1.. how can i remove that numerotation? –  qwerty May 5 '11 at 16:37
@qwerty: See this question for general hints about changing the numbering of figures and tables. –  lockstep May 5 '11 at 16:41
remove all numbers: \renewcommand{\thefigure}{} –  Marco Daniel May 5 '11 at 17:10
or you can use \caption*{} –  Marco Daniel May 5 '11 at 17:11
Using the figurename= key for the caption package (as in \usepackage[figurename=Fig.]{caption} ) you can change the figure name and this will work whether babel is used or not. –  Gonzalo Medina May 5 '11 at 18:17