정리 이후 후속 결과에 번호를 매기는 방법은 무엇입니까?

정리 이후 후속 결과에 번호를 매기는 방법은 무엇입니까?

나는 정리 다음에 정리 결과에 번호를 매기려고 합니다. 즉, 정리 1 다음에 결과 1.1, 결과 1.2,... 그리고 정리 2 다음에 결과 2.1, 결과 2.2 등이 옵니다. 여기서 "결과" 다음의 첫 번째 숫자는 결과가 해당하는 정리의 번호입니다. 나는 이것을 비머에서하고 있습니다. 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}

이것이 내가 얻는 것입니다:

영상

비머는 내 정리에 연속적인 순서로 번호를 매겼고, 내 결과도 연속된 순서로 번호를 매겼는데, 둘 사이에는 아무런 관련이 없습니다. 내가 갖고 싶은 것은 다음과 같습니다.

정리 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}

관련 정보