# How can I number my subsequent results after my theorems?

I am trying to number my theorem results after my theorem, i.e Theorem 1 followed by Result 1.1, Result 1.2,... and Theorem 2 followed by Result 2.1, Result 2.2 and so on, where the first number after "Result" is the number of the theorem the result corresponds to. I am doing this in beamer. I am using the amsthm package and my code is as follows:

      \theoremstyle{theorem}
\newtheorem{thm}{Theorem}[section]
\theoremstyle{theorem}
\newtheorem{res}{Result}[section]


Thank you!

Edit: As tohec suggested, here is a working example:

\documentclass{beamer}
\usepackage[ labelfont={bf, color =ot}]{caption}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{bm}
\usepackage{tikz-cd}
\usepackage{relsize}
\usepackage{amsthm}
\usepackage{esdiff}
\usepackage{amsthm}

\setbeamertemplate{theorems}[numbered]

\theoremstyle{theorem}
\newtheorem{thm}{Theorem}
\theoremstyle{theorem}
\newtheorem{res}{Result}

\begin{document}

\begin{frame}

\begin{thm}Here lies the first theorem.\end{thm}

\begin{res}Here lies the first result from the first theorem\end{res}

\begin{res}Here lies the second result from the first theorem\end{res}

\begin{thm}Here lies the second theorem.\end{thm}

\begin{res}Here lies the first result from the second theorem\end{res}

\end{frame}
\end{document}


This is what I get:

Beamer numbers my theorems in consecutive order and my results in consecutive order, with no relation between them. Here is what I'd like to have:

Theorem 1 Here lies the first theorem.

Result 1.1 Here lies the first result from the first theorem.

Result 1.2 Here lies the second result from the first theorem.

Theorem 2 Here lies the second theorem.

Result 2.1 Here lies the first result from the second theorem.

• Welcome to TeX.sx! With that setting you'll have "Theorem 1.1" for the first theorem in the first section. Should it be "Result 1.1.1" or "Result 1.1"? – egreg Apr 15 '13 at 8:17
• Is \theoremstyle{theorem} \newtheorem{thm}{Theorem}[section] \newtheorem{res}{Result}[thm] what you seek? – yo' Apr 15 '13 at 8:19
• Oh dear, I made a mistake. I don't want it to be numbered after the section. Is it possible to set a counter which just counts the theorems in order and which counts the results after their corresponding theorems? Also, tohecz, that does not quite work. – Merry Apr 15 '13 at 8:26
• @Merry In that case please provide a Minimal (non)-Working Example, and as well, put together an example of the desired numbering like the one in this question. Without that, your problem seems not to be understandable. – yo' Apr 15 '13 at 9:36
• Doing \newtheorem{res}{Result}[thm] is exactly what you need. @tohecz Please, provide the answer. – egreg Apr 15 '13 at 10:05

You need to tell {res} to be sub-numbered from {thm}, which is done by an optional argument added at the end of \newtheorem:

\newtheorem{res}{Result}[thm]


Embedded into a MWE:

\documentclass{beamer}
\usepackage[ labelfont={bf, color =ot}]{caption}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{bm}
\usepackage{tikz-cd}
\usepackage{relsize}
\usepackage{amsthm}
\usepackage{esdiff}
\usepackage{amsthm}

\setbeamertemplate{theorems}[numbered]

\theoremstyle{theorem}
\newtheorem{thm}{Theorem}
\theoremstyle{theorem}
\newtheorem{res}{Result}

\begin{document}

\begin{frame}

\begin{thm}Here lies the first theorem.\end{thm}

\begin{res}Here lies the first result from the first theorem\end{res}

\begin{res}Here lies the second result from the first theorem\end{res}

\begin{thm}Here lies the second theorem.\end{thm}

\begin{res}Here lies the first result from the second theorem\end{res}

\end{frame}
\end{document}