我曾经利用GMS课程来设计一本数学书。在那本书中,作者有一个特殊的定理,如下:
\documentclass{gsm-l}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{xca}[theorem]{Exercise}
\theoremstyle{remark}
\newtheorem{remark}[theorem]{Remark}
\numberwithin{section}{chapter}
\numberwithin{equation}{chapter}
\setcounter{tocdepth}{2}
\makeindex
\begin{document}
\title{}
\maketitle
\section{Indent the subsection}
\begin{theorem}Here is theorem 1
\end{theorem}
\begin{theorem}This theorem must be numbered as theorem 2A
\end{theorem}
\printindex
\end{document}
正如您在 MWE 中看到的,有两个定理。我想将第二个定理编号为定理 2A,而下一个定理则像往常一样是定理 3。
我该怎么办?请帮帮我。
谢谢。
答案1
暂时调整定理反表述:
...
\renewcommand{\thetheorem}{\arabic{theorem}A}%
\begin{theorem}This theorem must be numbered as theorem 2A
\end{theorem}
\renewcommand{\thetheorem}{\arabic{theorem}}%
...