# 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

## 1 Answer

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}

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

\newtheorem{thm}{Theorem}

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

Refer to Theorem \ref{bar}

\end{document}


I'd give the items a distinctive numbering, so that it will be clearer that "Theorem 1(2)" refers to statement 2 in theorem 1.

-