i ve got an issue with Figure counting and, i think, labeling. Though I set the counter for figures at 0, my first figure, that I d like to have counted as 'Fig.1' and that is labeled as \label{graf1}, appears in Chapter 2, Subsubsection 2.2.3.1 and is captioned when compilated as 'Fig 2.1'. Moreover, while it is referred to in the text as '(\ref{graf1})' the reference looks as 'figure (2.2.3.1)', that is the subsubsection number...
Does anybody see what seems to be the problem? My header is below. Many thanks!
\documentclass[12pt]{thesis}%{book}%{%
\usepackage[numbers]{natbib}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{epigraph}
\usepackage{pdfpages}
\usepackage{url}
\usepackage{breqn}
\usepackage{setspace}
\usepackage{dsfont}
\usepackage{eurosym}
\usepackage{setspace}
\onehalfspacing
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\setcounter{figure}{0}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}%[section]
\newtheorem{defin}{Definition}
\newtheorem{prop}{Proposition}
\newcommand{\eqbydef}{\overset{def}{=}}
\begin{document}
.....
\begin{figure}[htb]\label{graf1}
\begin{center}
\includegraphics[height=8cm,width=11cm]{c3.eps}
\caption{This shuould be Figure 1}
\end{center}
\end{figure}
\end{document}
labelafter thecaption. – Feb 09 '13 at 15:27figuremakes use of the counterfigurebut it prints the number after the value of thechaptercounter. So you'll have2.1. Fromreport.clswe found\newcounter{figure}[chapter]. – Sigur Feb 09 '13 at 15:29