easylist 和 cleveref

easylist 和 cleveref

easylist我正在尝试使用cleveref's来引用一个项目\cref。这是一个 MWE:

\documentclass{article}

\usepackage[at, 5]{easylist}
\usepackage{cleveref}

\begin{document}

\section{S1}
\begin{easylist}{enumerate}
@ This is a thing. \label{thing1}
@@ This is another thing.
@ stuff 2. \label{thing2}
\end{easylist}

Now I'm referring to \cref{thing1} (should be item 1) and \cref{thing2} (should be item 2), but item \ref{thing2} works.

\end{document}

编译时,\cref命令会打印section 1部分计数器,而不是列表计数器。有办法解决这个问题吗?

相关内容