如果我设置了要遵循的推论的计数器theorem
,cleveref
则会错误地使用标签定理在文本中,而不是推论。我该如何纠正这个问题?
最小工作示例:
\documentclass{article}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}[theorem]{Corollary}
% \newtheorem{corollary}{Corollary} % This works
\usepackage{cleveref}
\begin{document}
\begin{theorem} \label{thm1}
Theorem level result.
\end{theorem}
\begin{corollary} \label{cor1}
Corollary of \cref{thm1}.
\end{corollary}
Reference to \cref{cor1}.
\end{document}