![重述定理(编号问题)](https://linux22.com/image/330126/%E9%87%8D%E8%BF%B0%E5%AE%9A%E7%90%86%EF%BC%88%E7%BC%96%E5%8F%B7%E9%97%AE%E9%A2%98%EF%BC%89.png)
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{thm-restate}
\usepackage{cleveref}
\declaretheorem[name=Theorem,numberwithin=section]{thm}
\begin{document}
\theoremstyle{definition}
\newtheorem{my}{Theorem}[section]
\section{First}
\begin{my}
This theorem should be 1.1 (which is correct) and the theorem below should be (1.2) which I will refer to later on in section 2.
\end{my}
\begin{restatable}{thm}{doubling}
\label{thm:doubling}
Let $s$ be a non-negative integer. Then $X \equiv \{-4,-3,-2,-1,0,3\} \pmod{12104\cdot2^s}$ implies $X \equiv \{-4,-3,-2,-1,0,3\} \pmod{12104\cdot2^{s+1}}$. Thus by induction $X \equiv \{-4,-3,-2,-1,0,3\}$.
\end{restatable}
\section{Second}
\noindent We recall \cref{thm:doubling}:
\doubling*
\end{document}
我采用了这个答案
这确实很有帮助。我尝试了一下这个命令,但遇到了编号问题。
之前我已经修复了这个问题\newtheorem{my}{Theorem}[section]
,我想将“回忆定理”中的答案应用到我所谓的定理中,以便它稍后出现在第 2 节中。我认为这两个命令都有问题,\begin{my}
或者\begin{restatable}
它对定理给出了相同的编号。有人能帮我解释一下这个命令有什么问题吗?
如果我需要改变什么,我更愿意是\declaretheorem[name=Theorem,numberwithin=section]{thm}
因为我已经习惯了
\theoremstyle{definition}
\newtheorem{my}{Theorem}[section]
遍布我的论文。