I'm lost in the maze of customization options in the cleveref
package. The MWE says what I'm trying to do, and my best attempt so far.
I'm running TeXLive 2013, compiling with latexmk -pdf MWE.tex
Note: I don't need a more sophisticated package than memoir
's extensions to enumerate
, unless that helps solve the problem.
\documentclass{memoir}
\usepackage{hyperref}
\usepackage{cleveref}
\setsecnumdepth{subsubsection}
\begin{document}
\mainmatter
\chapter{one}
\label{chap:one}
\section{uno}
\label{sec:uno}
\subsection{ein}
\label{subsec:ein}
\begin{enumerate}[(a)]
\item
aaa
\item
\label[subsection]{enum:bbb}
bbb
\end{enumerate}
\subsection{zwei}
What I want is a cross reference that looks like ``section 1.1.1(b)''
But \verb|\cref{enum:bbb}| gives ``\cref{enum:bbb}''
\end{document}
Note: the comments and answer that suggest changing enumerate
to subsubsection
don't address the fact that I want the cross reference formatted differently from the section number in the document - as shown in the MWE, the numbering within the document should be just "(b)" but the reference should be "1.1.1(b)".
\subsubsection{aaa}
instead ofenumerate
environment.enumerate
environments within onesubsection
. There are very few cross-references to enumerated items, so I'm not bothered (so far!) about the possibility of ambiguous cross references. If I used\subsubsection
I would still want the subsubsection numbered "(b)", and the reference to be "1.1.1(b)".\subsubsection
then you would get the reference as "section 1.1.1.2". As there are very few cross-reference, is there a big deference between "1.1.1(b)" and "section 1.1.1.2". Oh yes! I think @Robert has solved your problem..