I am trying to use the cleveref
package.
I have the following counters defined (hopefully this is the right way to do it!)
\newtheorem{thm}{Theorem}[section]
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{cor}[thm]{Corollary}
This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)
My problem is \cref
always returns Theorem 1.2, Theorem 1.3. I
Perhaps this is not right? (In my preamble)
\crefname{thm}{theorem}{theorem's}
\crefname{lemma}{lemma}{lemma's}
Best Answer
The behaviour you describe comes from the standard LaTeX
\newtheorem
command; the problem can be solved by using theamsthm
orntheorem
packages:The
\newtheorem
commands have to come after the loading ofcleveref
. Additionally, thecleverref
package has to be loaded afterntheorem
oramsthm
. In total this gives the following order:By the way, the plural forms of theorem and lemma don't use an apostrophe, so you should use