[Tex/LaTex] Why are the reference numbers to labels disappearing?


Possible Duplicate:
Why does an environment's label have to appear after the caption?

In the following example, there are no reference numbers to the figures when I compile using pdflatex:



%debugging package for figuring out why my figure references keep disappearing




Bob is reference \ref{bob}. Jane is reference \ref{jane}.


Any idea why?

Best Answer

You need to put \label after \caption.

Related Question