I have a list of axioms, and I am using enumitem
to label them:
\documentclass{article}
\usepackage{enumitem}
\newcommand\fmt[1]{$\mathbf{(#1)}$}
\begin{document}
\begin{enumerate}[format=\fmt]
\item[Ex_1]\label{ax1} The sky is blue.
\item[Egreg_\infty]\label{ax2} Another item.
\end{enumerate}
The first condition is \ref{ax1}
\end{document}
All the \item
s have their optional parameter, because the names do not follow a simple pattern. I'd like the \ref
to be formatted in exactly the same way as the label appears in the list. But it seems that when \item
is given its optional argument it does not even emit a anchor for a reference, let alone format the reference like the label.
Is there a way to do this?
\item
I wrote and replaceEx_1
byUnit
:-) The items are axioms for things, and their names are short appreviations (sometimes with decorations, likeEx_3'
) – Mariano Suárez-Álvarez Mar 23 '15 at 22:14\ref
s be the counter values, not the actual labels. – Mariano Suárez-Álvarez Mar 23 '15 at 22:16