Как мне пронумеровать мои последующие результаты после моих теорем?

Как мне пронумеровать мои последующие результаты после моих теорем?

Я пытаюсь нумеровать результаты моих теорем после моей теоремы, т. е. Теорема 1, за которой следуют Результат 1.1, Результат 1.2,... и Теорема 2, за которой следуют Результат 2.1, Результат 2.2 и так далее, где первое число после "Результат" - это номер теоремы, которой соответствует результат. Я делаю это в beamer. Я использую пакет amsthm, и мой код выглядит следующим образом:

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

Спасибо!

Редактировать: Как и предложил tohec, вот рабочий пример:

\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}

Вот что я получаю:

изображение

Beamer нумерует мои теоремы в последовательном порядке и мои результаты в последовательном порядке, без связи между ними. Вот что я хотел бы иметь:

Теорема 1 Здесь и заключается первая теорема.

Результат 1.1 Здесь находится первый результат первой теоремы.

Результат 1.2 Здесь лежит второй результат первой теоремы.

Теорема 2 Здесь и заключается вторая теорема.

Результат 2.1 Здесь лежит первый результат второй теоремы.

решение1

Вам необходимо указать, {res}что необходимо быть поднумерованным из {thm}, что делается с помощью необязательного аргумента, добавляемого в конец \newtheorem:

\newtheorem{res}{Result}[thm]

Встроено в 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}

Связанный контент