
Я хочу написать несколько теорем с выводами, которые можно определить самостоятельно, например, "Теорема A, Теорема B, Теорема B^+, Теорема B^#" и т. д., и хочу, чтобы эти специальные теоремы были вне обычного счетчика теорем, т. е. другие теоремы сохраняли свою собственную нумерацию, например, "Теорема 1.1, Теорема 1.2", даже если "Теорема B" находится между ними. Есть ли простой способ добиться этого?
Это может быть связано с вопросомздесьно я думаю, что это не цена моего вопроса здесь. Спасибо заранее!
решение1
Что-то вроде этого?
\documentclass{article}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{theoremvar}{Theorem}
\newenvironment{theorem*}[1]
{\renewcommand{\thetheoremvar}{#1}\theoremvar}
{\endtheoremvar}
\begin{document}
\section{Title}
\ref{normal1},
\ref{normal2},
\ref{normal3},
\ref{normal4},
\ref{special1},
\ref{special2},
\ref{special3}
\begin{theorem}\label{normal1}
This is a normal theorem.
\end{theorem}
\begin{theorem}\label{normal2}
This is a normal theorem.
\end{theorem}
\begin{theorem*}{A}\label{special1}
This is a special theorem.
\end{theorem*}
\begin{theorem}\label{normal3}
This is a normal theorem.
\end{theorem}
\begin{theorem*}{B$^+$}\label{special2}
This is a special theorem.
\end{theorem*}
\begin{theorem*}{B$^{\sharp}$}\label{special3}
This is a special theorem.
\end{theorem*}
\begin{theorem}\label{normal4}
This is a normal theorem.
\end{theorem}
\end{document}
Окружающая theorem*
среда имеет обязательный аргумент в пользу специальной маркировки.