I am trying to reference a hardcoded item in enumerate inside a theorem environment. Instead of getting (c1)
, I got the label of the theorem. Is there a quick fix?
\documentclass[11pt]{article}
\usepackage{amsmath, cleveref}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
Properties
\begin{enumerate}
\item[(c1)] a \label{c1}
\item[(c2)] b
\item[(k)] c
\item[(n1)] d
\item[(n2)] e
\end{enumerate}
\end{theorem}
\ref{c1}, \cref{c1}
\end{document}
Best Answer
You can adapt the concept of an
arb
itrarylabel
from How to implementcleveref
's\cref@currentlabel
correctly for custom cross-references to create "custom theorem-like references" for your theorem lists: