# [pdftex] Cross-reference problem

Rui Pimenta rpimenta at bigfoot.com
Sun Oct 21 18:15:26 CEST 2001

Hello all,

I'm quite new with latex. I'm having problems with the cross-reference in my text. By
using the following code the yield result is that, the reference that it gives me is
the number of the chapter instead of the figure number. Can anyone tell me what I'm doing
wrong.

% ============ Latex Code =====================
\documentclass[12pt, a4paper, pdftex]{report}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{graphics}
\usepackage{fancyhdr}
\usepackage{newlfont}
\usepackage{xtocinc}

........................................

..... through weights, Figure \ref{hop}.

\begin{figure}[h]
\label{hop}
\centering
\resizebox{!}{4cm}{\includegraphics{hop3.pdf}}
\caption{Hopfiel Network}
\end{figure}
% =============================================

And I'm trying to find documentation that could explain me how I can do an
hyper document (hyper index, link references, and color hyperlinks). It whould be very
nice to get template documents with this features.

----