फैंसी प्रमेय शैली

Sep 04 2020

मैं कुछ प्रमेयों को आउटपुट के साथ कुछ स्व-परिभाषित करना चाहता हूं जैसे "प्रमेय ए, प्रमेय बी, प्रमेय बी ^ +, थियोरम बी ^ #" आदि और थिसिस विशेष प्रमेयों को सामान्य प्रमेय काउंटर के बाहर होना चाहिए, अर्थात अन्य प्रमेय "द थ्योरम 1.1", जैसे "थोरेम बी" के माध्यम से भी अपने स्वयं के नंबरिंग रखते हैं, उनके बीच है। क्या इसे प्राप्त करने का एक आसान तरीका है?

यह यहाँ प्रश्न से संबंधित हो सकता है, लेकिन मुझे लगता है कि यहाँ मेरे सवाल का अनुमान नहीं है। अग्रिम में धन्यवाद!

जवाब

6 egreg Sep 03 2020 at 23:27

कुछ इस तरह?

\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*पर्यावरण विशेष लेबल के लिए एक अनिवार्य तर्क है।