Fantezi teorem stili

Sep 04 2020

Bazı teoremleri, "Teorem A, Teorem B, Teorem B ^ +, Teorem B ^ #" gibi bir şekilde kendi tanımlı çıktılarla yazmak istiyorum ve bu özel teoremlerin normal teorem sayacının dışında olmasını istiyorum, yani diğer teoremler "Teorem 1.1, Teorem 1.2" gibi kendi numaralarını "Teorem B" aralarında olsa bile tutarlar. Bunu başarmanın kolay bir yolu var mı?

Bu soruya ilgili olabilir burada ama burada sorumu pricise değil diye düşünüyorum. Şimdiden teşekkürler!

Yanıtlar

6 egreg Sep 03 2020 at 23:27

Bunun gibi bir şey mi?

\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*Çevre özel etiket için zorunlu bir argüman vardır.