I recently used Roelof's answer from list the cases in text and I would like to be able to use label Cref to call the different Cases.
The environment is
\newcounter{casenum}
\newenvironment{caseof}{\setcounter{casenum}{1}}{\vskip.5\baselineskip}
\newcommand{\case}[2]{\vskip.5\baselineskip\par\noindent {\bfseries Case \arabic{casenum}:} #1\\#2\addtocounter{casenum}{1}}
and the example edited is
\documentclass{article}
\begin{document}
\newcounter{casenum}
\newenvironment{caseof}{\setcounter{casenum}{1}}{\vskip.5\baselineskip}
\newcommand{\case}[2]{\vskip.5\baselineskip\par\noindent {\bfseries Case \arabic{casenum}:} #1\\#2\addtocounter{casenum}{1}}
\begin{caseof}
\case{$x>0$}{
In this case, $x$ is larger than $0$ \label{c:1}
}
\case{$x<0$}{
In this case, $x$ is smaller than $0$ \label{c:2}
}
\case{$x=0$}{In this case, $x$ equals $0$\label{c:3}}
\end{caseof}
\end{document}
How can I go about changing Cref so that I can use say
\Cref{c:1} is a good example for positive $x$
and have Latex output it as
Case (1) is a good example for positive x.
If I use \roman instead it should say
Case (i) is a good example for positive x.
etc
where, just as for normal equations, you can click on the (1)/(i) and it will direct you to that part of the document.
Many Thanks