
Estoy tratando de numerar los resultados de mi teorema después de mi teorema, es decir, el Teorema 1 seguido del Resultado 1.1, el Resultado 1.2,... y el Teorema 2 seguido del Resultado 2.1, el Resultado 2.2 y así sucesivamente, donde el primer número después de "Resultado" es el número del teorema al que corresponde el resultado. Estoy haciendo esto en Beamer. Estoy usando el paquete amsthm y mi código es el siguiente:
\theoremstyle{theorem}
\newtheorem{thm}{Theorem}[section]
\theoremstyle{theorem}
\newtheorem{res}{Result}[section]
¡Gracias!
Editar: como sugirió tohec, aquí hay un ejemplo práctico:
\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}
Esto es lo que obtengo:
Beamer numera mis teoremas en orden consecutivo y mis resultados en orden consecutivo, sin relación entre ellos. Esto es lo que me gustaría tener:
Teorema 1 Aquí radica el primer teorema.
Resultado 1.1 Aquí se encuentra el primer resultado del primer teorema.
Resultado 1.2 Aquí se encuentra el segundo resultado del primer teorema.
Teorema 2 Aquí radica el segundo teorema.
Resultado 2.1 Aquí se encuentra el primer resultado del segundo teorema.
Respuesta1
Debe indicar {res}
que debe subnumerarse desde {thm}
, lo cual se realiza mediante un argumento opcional agregado al final de \newtheorem
:
\newtheorem{res}{Result}[thm]
Integrado en una 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}