Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
    
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
1  
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
add comment

1 Answer

up vote 5 down vote accepted

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.

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.