为什么我的定理没有按字母编号?

为什么我的定理没有按字母编号?

我试图用字母而不是数字来列举我论文中的主要定理。我试过使用以下代码,但它不起作用(至少计数器是!)

\documentclass[11pt]{amsart}
\usepackage{amsmath}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{theoremno}{Theorem}

\newcounter{teoremas} 
\setcounter{teoremas}{0} 
\newtheorem{teorema}[teoremas]{Theorem} 
\renewcommand{\theteorema}{\Alph{teoremas}} 

\begin{document}

\begin{teorema} Teorema a
\end{teorema}

\begin{teorema} Teorema B
\end{teorema}

\end{document}

输出只是

在此处输入图片描述

我的代码有什么问题?可以保存吗?还是我应该从头开始?

答案1

为你的主要定理定义一个特殊的环境。

\documentclass[11pt]{amsart}
\usepackage{amsmath}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{maintheorem}{Theorem}
\renewcommand{\themaintheorem}{\Alph{maintheorem}}

\begin{document}

\section{Test}

\begin{theorem}
This is a standard theorem.
\end{theorem}

\begin{theorem}
This is a standard theorem.
\end{theorem}

\begin{maintheorem}
This is one of the main theorems.
\end{maintheorem}

\section{Another}

\begin{theorem}
This is a standard theorem.
\end{theorem}

\begin{maintheorem}
This is one of the main theorems.
\end{maintheorem}

\end{document}

在此处输入图片描述

答案2

\documentclass[11pt]{amsart}

\newtheorem{theorem}{Theorem}[section]
\renewcommand{\thetheorem}{\Alph{theorem}}

\begin{document}

\begin{theorem}
  Hello
\end{theorem}

\end{document}

相关内容