![如何使 \cref 中的关键字与枚举环境兼容](https://linux22.com/image/458954/%E5%A6%82%E4%BD%95%E4%BD%BF%20%5Ccref%20%E4%B8%AD%E7%9A%84%E5%85%B3%E9%94%AE%E5%AD%97%E4%B8%8E%E6%9E%9A%E4%B8%BE%E7%8E%AF%E5%A2%83%E5%85%BC%E5%AE%B9.png)
我的问题如下,
\documentclass[12pt]{article}
\usepackage{mathtools}
\usepackage{amssymb,amsthm}
\usepackage[inline]{enumitem}
\usepackage{hyperref}
\usepackage{cleveref}
\newcommand{\Crefdefpart}[2]{
\nameCref{#1}~\hyperref[#2]{\labelcref*{#1}\ref*{#2}}
}
\crefname{enumi}{part}{parts}
\begin{document}
Stated in terms of choice functions, Zermelo's first formulation of AC reads:
\begin{enumerate}
\item\label{enum:AC1} Any collection of nonempty sets has a choice function.
\cref{enum:AC1} can be reformulated in terms of \textit{indexed} or
\item[AC2]\label{enum:AC2} Any indexed collection of sets has a choice function.
\cref{enum:AC2}: Informally speaking, \textbf{AC2} amounts to the assertion that a variable set with an element at each stage has a variable element.
\end{enumerate}
\end{document}
结果如下
问题:
- 如果我想让\cref识别\item方括号里的关键字,例如AC2,我该怎么做?
- 为什么两个 /cref 都指向同一个东西?有什么线索吗?
提前致谢。