Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

\documentclass[12pt]{article}

\usepackage{amsmath}
\usepackage[normalem]{ulem}
\usepackage{float}
\usepackage{graphicx}
\usepackage{sidecap}
\usepackage{wrapfig}
\usepackage{grffile}
\usepackage[cm]{fullpage}
\usepackage{fixltx2e}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{indentfirst}
\usepackage[hidelinks]{hyperref}
\usepackage{glossaries}

%debugging package for figuring out why my figure references keep disappearing
%\usepackage{refcheck}

\begin{document}

\begin{figure}
\label{bob}
\caption{Bob}
\end{figure}

\begin{figure}
\label{jane}
\caption{Jane}
\end{figure}

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

\end{document}

Any idea why?

share|improve this question

marked as duplicate by Jake, lockstep, Count Zero, Werner, egreg May 30 '12 at 6:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Welcome to TeX.SE. –  Peter Grill May 29 '12 at 20:57
2  
@Jake Indeed. And I'm eagerly awaiting the day stackexchange starts handing out reputation and/or badges for finding duplicates. –  lockstep May 29 '12 at 21:06

1 Answer 1

You need to put \label after \caption.

share|improve this answer
    
I see now. Thank you very much. –  Nathan Alday May 29 '12 at 21:21
2  
@NathanAlday You may also thank me by accepting may answer. ;-) –  lockstep May 29 '12 at 21:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.