Re: Figure ref. numbering

"S. venkataraman" <[email protected]>
Newsgroups gmane.comp.tex.tugindia
Message-ID <[email protected]>
On Mon, May 30, 2011 at 5:58 PM, Jitender Singh <[email protected]>wrote:

> Position of label w.r.t. caption does change format of printed label. I
> just
> cross-checked it, you may try it yourself:
>  \begin{figure}[htbp]
>  \includegraphics[width=0.5\textwidth]{fileName.png}
>  \caption{figure caption}
>  \label{fig:tiger}
>  \end{figure}
>
> results in figure 3 whereas,
>
>  \begin{figure}[htbp]
>  \includegraphics[width=0.5\textwidth]{fileName.png}
>  \label{fig:tiger}
>  \caption{figure caption}
>  \end{figure}
>
> gives figure 2.1.3. (section number)
>
> Regards,
> Jitender SIngh
>
>
>
> --
> Regards!
> Jitender Singh
> _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>
I checked out the following combinations.
article
book
article+amsmath
book+amsmath
Here is the small test file
I used.   I changed filename.png to the name of my
graphics file.

\documentclass{article}

%\documentclass{book}

\usepackage{amsmath}

\usepackage{graphicx}

\begin{document}

\begin{figure}[htbp]

\includegraphics[width=0.5\textwidth]{filename.png}

\caption{figure caption}

\label{fig:tiger}

\end{figure}

results in figure 3 whereas,

 \begin{figure}[htbp]

\includegraphics[width=0.5\textwidth]{filename.png}

\label{fig:tiger}

\caption{figure caption}

\end{figure}

\end{document}
Can you send a small test file like
this which produces the effect you
claim, namely different postions of
the \label command leading to
different labels?
Best,
S. Venkataraman
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.