I want to customize the text that appears when I do a \cref{}
, so for example, I want to make a link to section 0.1 but I want the text to say 'Summary' not section 0.1. I had this part working with the following line at the top of my document:
\crefformat{section}{\textbf{#2Summary#3}}
and then when I call the reference I use:
\cref{sec:CogSysParadigm}
And it shows up as Summary (but with a red box around it). Which is perfect. My problem is that I can't get the same thing to work for an item. I tried 'item', itemize item, subitem, etc. Example of what I tried:
\crefformat{item}{#2ToC#3} % so this would have a ToC as the text
and then I am using \cref
like:
\cref{itm:CogSysParadigm} % but it gives me item 1(d)ii instead
\documentclass{...}
and ending with\end{document}
.\crefformat{enumi}{#2ToC#3}
solves the problem?