# Problems using cleveref with ntheorem [closed]

I'm using ntheorem and cleveref to make my life easier. The problem is that the produced references look like:

• If I use \cref : ?? [theorem][22][4]4.22
• If I use \autoref, but cleveref is loaded : ?? [theorem][22][4]4.22
• If I use \autoref, but cleveref is not loaded : Theorem 4.22 (correct)

I also follow the instructions in the manual for cleveref and load it last. Below is a minimal example that reproduces this behavior

\documentclass[11pt,a4paper,titlepage]{memoir}

\usepackage[]{ntheorem}

\newtheorem{theorem}{Theorem}

\theoremstyle{nonumberplain}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\square}}
\newtheorem{proof}{Proof}
\usepackage{cleveref}

\title{Debugging}
\author{Somebody}

\begin{document}

\begin{theorem}
\label{thm-foo}
Foo.
\end{theorem}

\end{document}


The list of files

 *File List*
memoir.cls    2009/09/21 v1.61803398b configurable book, report, article document class
ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)
ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional
ifluatex.sty    2009/04/17 v1.2 Provides the ifluatex switch (HO)
etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
mem11.clo    2008/01/30 v0.3 memoir class 11pt size option
mempatch.sty    2009/07/24 v6.0f Patches for memoir class v1.6180339
ntheorem.sty    2005/07/07 1.25
cleveref.sty    2009/09/22 v0.14.2 Intelligent cross-referencing
***********


Does anyone know what might be causing this?

-
Please add a minimal document illustrating the problem and including the relevant settings. Most probably it has to do with the order in which you load some packages. – Gonzalo Medina Dec 13 '12 at 14:46
As \autoref is a hyperref command, my guess is that you overlooked the fact that cleveref must be loaded after hyperref. See also tex.stackexchange.com/questions/53191/… – lockstep Dec 13 '12 at 15:05
cleveref is the latest included package. Thanks for noting that - I added it to the question. – user182 Dec 13 '12 at 15:13
@user182 we wouldn't have to guess your package loading if the question included a complete small document that demonstrated the problem so it could be reproduced. – David Carlisle Dec 13 '12 at 15:16
@user182 I have no problem with that code, even adding hyperref and using \autoref along with \cref. – egreg Dec 13 '12 at 15:35

## closed as too localized by Stephen, lockstep, Kurt, Werner, Torbjørn T.Dec 13 '12 at 18:45

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.

The class as well as some packages are outdated:

  memoir.cls used: 2009/09/21 v1.61803398b recent: 2011/03/06 v3.6j
ifpdf.sty used: 2009/04/10 v2.0         recent: 2011/01/30 v2.3
ifetex.sty not used,                     recent: 2011/12/15 v1.2
ifxetex.sty used: 2009/01/23 v0.5         recent: 2010/09/12 v0.6
ifluatex.sty used: 2009/04/17 v1.2         recent: 2010/03/01 v1.3
etex.sty used: 1998/03/26 v2.0      is recent
mem11.clo used: 2008/01/30 v0.3      is recent
mempatch.sty used: 2009/07/24 v6.0f     is recent
ntheorem.sty used: 2005/07/07 1.25         recent: 2011/08/15 1.33
ifthen.sty not used,                     recent: 2001/05/26 v1.1c
cleveref.sty used: 2009/09/22 v0.14.2      recent: 2012/09/25 v0.18.6


Updating should solve your problem. ["recent" as of the time of this post, future releases are to be expected.]

-