# How to refer to the number of an item in an enumerate environment inside a theorem

I have something that looks like this:

\usepackage{amsmath}
\begin{document}
\begin{thm}
The following are true:
\begin{enumerate}
\item \label{foo} Foo
\item \label{bar} Bar
\item \label{baz} Baz
\end{enumerate}
\end{thm}

Refer to Theorem \ref{bar}

\end{document}


Right now, the reference to bar shows up as Theorem 1. I want it to show up as Theorem 1.2. Is there any way to do that? To give a sub-numbering to each label within a theorem?

-
That numbering scheme is likely to confuse your readers... –  Jubobs May 23 '13 at 17:58
Fair enough, I'm fine with the 1 (2) scheme egreg gives. –  jmite May 23 '13 at 18:04
i think the question would be more obvious with a slight change of title: "How to refer to the number of an item in an enumerate ..." –  barbara beeton May 23 '13 at 18:05

I agree with Jubobs comment: using "Theorem 1.2" is very likely to be confusing.

Here's how one might do:

\documentclass{article}
\usepackage{enumitem}

{\begin{enumerate}[label=\upshape(\arabic*),ref=\thethm(\arabic*)]}
{\end{enumerate}}

\newtheorem{thm}{Theorem}

\begin{document}
\begin{thm}
The following are true:
\item \label{foo} Foo
\item \label{bar} Bar
\item \label{baz} Baz