定理の後に続く結果に番号を付けるにはどうすればよいですか?

定理の後に続く結果に番号を付けるにはどうすればよいですか?

私は定理の後に定理の結果に番号を付けようとしています。つまり、定理 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 ここに 2 番目の定理があります。

結果 2.1 ここに、第 2 の定理からの最初の結果があります。

答え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}

関連情報