無法使用 nosort 來實作 smartef

無法使用 nosort 來實作 smartef

我發現當標籤位於不同部分時,cleveref 套件的排序和壓縮不是很智能,因此我決定禁用排序和壓縮。但是我無法使用 nosort 來實作 smartef。

這是我的程式碼

\documentclass[11pt]{article}
\usepackage[nosort]{cleveref}
\newtheorem{Thm}{Theorem}[subsection]
\crefname{Thm}{Theorem}{Theorems}
\begin{document}
\begin{Thm}\label{T1}
This is Theorem 1.
\end{Thm}
\cref{T1}
\end{document}

編譯時,日誌檔如下所示。

!未定義的控制序列。

\cref@processgroup ...ref \cref@isrefsametypetrue \@whilesw \if@cref@sametyp...

l.8 \cref{T1} ?

進程已終止...

我該做出什麼改變?

相關內容