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.

I am using cleveref, which seems to be working fine, except for my equation references, which are referenced as ??.

My equation is:

\begin{equation}\label{ex2eqn}
Y_{t} = \epsilon_t + 1.8Y_{t-1} + 0.8Y_{t-2} + 0.2Y_{t-6} - 0.36Y_{t-7} + 0.16Y_{t-8}
\end{equation}

and my reference is

This transformation is done by inserting $Y_{t-1}$ into \Cref{ex2eqn}, then $Y_{t-2}$ and so on.

A minimal working example is:

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage[thmmarks]{ntheorem}
\usepackage{cleveref}
\begin{document}
\begin{equation}\label{ex2eqn}
e=mc^2
\end{equation}
A reference: \Cref{ex2eqn}.
\end{document}
share|improve this question
    
If I supplement your code snippets to a full example, I can't comprehend the problem. Please provide a minimal example that clearly reproduces the described behaviour. –  Thorsten Donig Oct 8 '11 at 12:55
    
You need to compile twice to have the references set. Did you do that? –  Andro Oct 8 '11 at 13:19
    
I did. I am sorry I did not supply a minimal working example in the beginning. Now that I have, it seems the problem is rather odd, and has something todo with the combination of thmmarks and amsmath... –  utdiscant Oct 8 '11 at 13:22
add comment

1 Answer 1

up vote 4 down vote accepted

Load ntheorem with the amsmath (compatibility) package option.

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage[amsmath,thmmarks]{ntheorem}
\usepackage{cleveref}
\begin{document}
\begin{equation}\label{ex2eqn}
e=mc^2
\end{equation}
A reference: \Cref{ex2eqn}.
\end{document}
share|improve this answer
    
I found that loading the ntheorem package (without the additional amsmath option) before the amsmath package also fixed it. –  cmhughes Oct 8 '11 at 15:44
    
@cmhughes: I doubt that this won't break other things. See section 3.2.1 of the ntheorem manual. –  lockstep Oct 8 '11 at 15:47
    
Thanks for the reference! –  cmhughes Oct 8 '11 at 15:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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