The below code (exluding the line \usepackage{hyperref}) provides two theorem environments thm and Thm, which use two different theorem styles (with andwithout a line break right after the theorem numbers, respectively). However, if I load hyperref (before cleveref, as the manual for the latter package tells me to do), the \crefrange on the last line breaks.
\documentclass{article}
\usepackage{ntheorem}
\usepackage{hyperref} %<--- this line breaks \crefrange
\usepackage{cleveref}
\newtheorem{thm}{Theorem}
\theoremstyle{break}
\newtheorem{Thm}[thm]{Theorem}
\crefname{thm}{theorem}{theorems}
\crefalias{Thm}{thm}
\begin{document}
\begin{thm}\label{thm:short}
Theorem with short text.
\end{thm}
\begin{Thm}[The well-ordering theorem]\label{thm:long}
Theorem with long text.
\end{Thm}
\cref{thm:short}
\cref{thm:long}
\crefrange{thm:short}{thm:long}
\end{document}
Without hyperref:

With hyperref:

When I insert \usepackage{hyperref}, I actually get a lot of errors the first time I compile. However, compiling the second time, this is reduced to
LaTeX Warning: References
thm:shortandthm:longin reference range on page 1 have different typesthmandThmon input line 27.
Can anyone find this error and (preferably) find a way to solve it?
This question relates to cleveref for theorems with same type.


cleverefandhyperref. Heiko 'Mr. Hyperref' Oberdiek is a user here, but I am unsure about Toby Cubitt – Mar 02 '15 at 16:06excavationof Toby... unfortunately, he does not seem to be very active here :-( – Mar 02 '15 at 19:05hyperrefbeforecleveref) seems to fix a similar problem for me, based on this: http://tex.stackexchange.com/a/113726/8666 – 0 _ Apr 29 '15 at 02:16cleverefmanual,cleverefhas to be loaded after all other reference-releated packages, includinghyperref. I have not checked what happens if I change the order, and I won't because it is likely to cause other problems. By the way, Toby Cubitt has reported that he has fixed the error, so the issue will be solved in an upcoming release. – Gaussler Apr 29 '15 at 19:55