Tell me more ×
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.

The following code correctly produces 9, 10, and 11 as the Lemma labels but 6, 6, 11 when the references are printed. What could be causing this? (6 happens to be the chapter number.) All the other cross-references seem to be correct.

\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

\newtheorem{exercise}{Exercise}
\newtheorem{lemma}{Lemma}


\begin{lemma}
\label{L-t-abs cont incr}Suppose that ... functions.
\end{lemma}

\ref{L-t-abs cont incr}

\begin{lemma}[Lebesgue, 1904]
\label{L-t-LDT}If... $\left[ a,b\right] $.
\end{lemma}

\ref{L-t-LDT}

\begin{lemma}
\label{L-t-constant}If ... on $%
\left[ a,b\right] $.
\end{lemma}

\ref{L-t-constant}
share|improve this question
1  
Welcome to tex.sx. You can indent code sections by 4 spaces or highlight and use the {} button, as in my edit. Also it helps if you could edit your example to be a complete document that shows the problem. – David Carlisle Mar 22 at 17:32
5  
If I make that into a complete document adding \documentclass{report} and \chapter{aaa} then it works for me giving references 1 2 3 – David Carlisle Mar 22 at 17:37

closed as too localized by Werner, Kurt, mafp, Thorsten, percusse Mar 28 at 6:37

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.