我的问题如下,
\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 都指向同一个东西?有什么线索吗?
提前致谢。