summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-23 23:30:26 +0000
committerKarl Berry <karl@freefriends.org>2012-05-23 23:30:26 +0000
commit7cf631ce211034fe381c5f491e813af3543b3fa7 (patch)
treea066a7e43899d9b60acc8bc5582f1becb75ba5f5 /Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty
parentc54f51b46d82d7739231640fc5cea60593d1a5d4 (diff)
computational-complexity 2.23 (23may12)
git-svn-id: svn://tug.org/texlive/trunk@26607 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty')
-rw-r--r--Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty57
1 files changed, 30 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty b/Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty
index 565db792caa..927aaf1fe99 100644
--- a/Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty
+++ b/Master/texmf-dist/tex/latex/computational-complexity/ccthm.sty
@@ -177,38 +177,41 @@
\theoremstyle{cc}
\newtheorem{namedth@@r@m}{\the\theoremtitle}
\if@ccnosepeqncnt
-\let\c@namedth@@r@m\c@equation
-\def\thenamedth@@r@m{\theequation}
+%%% \let\c@namedth@@r@m\c@equation
+%%% \def\thenamedth@@r@m{\theequation}
+\def\cc@thmcnter{equation}
+\else
+\def\cc@thmcnter{namedth@@r@m}
\fi
\newenvironment{namedtheorem}[1]
{\theoremtitle{#1}\namedth@@r@m}
{\endnamedth@@r@m}
\if@standardtheorems
-\newtheorem{answer}[namedth@@r@m]{\Answer}
-\newtheorem{assumption}[namedth@@r@m]{\Assumption}
-\newtheorem{claim}[namedth@@r@m]{\Claim}
-\newtheorem{conjecture}[namedth@@r@m]{\Conjecture}
-\newtheorem{convention}[namedth@@r@m]{\Convention}
-\newtheorem{corollary}[namedth@@r@m]{\Corollary}
-\newtheorem{counterexample}[namedth@@r@m]{\Counterexample}
-\newtheorem{definition}[namedth@@r@m]{\Definition}
-\newtheorem{exercise}[namedth@@r@m]{\Exercise}
-\newtheorem{fact}[namedth@@r@m]{\Fact}
-\newtheorem{hypothesis}[namedth@@r@m]{\Hypothesis}
-\newtheorem{lemma}[namedth@@r@m]{\Lemma}
-\newtheorem{notation}[namedth@@r@m]{\Notation}
-\newtheorem{note}[namedth@@r@m]{\Note}
-\newtheorem{observation}[namedth@@r@m]{\Observation}
-\newtheorem{open}[namedth@@r@m]{\OpenQuestion}
-\newtheorem{openquestion}[namedth@@r@m]{\OpenQuestion}
-\newtheorem{problem}[namedth@@r@m]{\Problem}
-\newtheorem{proposition}[namedth@@r@m]{\Proposition}
-\newtheorem{question}[namedth@@r@m]{\Question}
-\newtheorem{remark}[namedth@@r@m]{\Remark}
-\newtheorem{result}[namedth@@r@m]{\Result}
-\newtheorem{theorem}[namedth@@r@m]{\Theorem}
-\newtheorem{thesis}[namedth@@r@m]{\Thesis}
-\newtheorem{warning}[namedth@@r@m]{\Warning}
+\newtheorem{answer}[\cc@thmcnter]{\Answer}
+\newtheorem{assumption}[\cc@thmcnter]{\Assumption}
+\newtheorem{claim}[\cc@thmcnter]{\Claim}
+\newtheorem{conjecture}[\cc@thmcnter]{\Conjecture}
+\newtheorem{convention}[\cc@thmcnter]{\Convention}
+\newtheorem{corollary}[\cc@thmcnter]{\Corollary}
+\newtheorem{counterexample}[\cc@thmcnter]{\Counterexample}
+\newtheorem{definition}[\cc@thmcnter]{\Definition}
+\newtheorem{exercise}[\cc@thmcnter]{\Exercise}
+\newtheorem{fact}[\cc@thmcnter]{\Fact}
+\newtheorem{hypothesis}[\cc@thmcnter]{\Hypothesis}
+\newtheorem{lemma}[\cc@thmcnter]{\Lemma}
+\newtheorem{notation}[\cc@thmcnter]{\Notation}
+\newtheorem{note}[\cc@thmcnter]{\Note}
+\newtheorem{observation}[\cc@thmcnter]{\Observation}
+\newtheorem{open}[\cc@thmcnter]{\OpenQuestion}
+\newtheorem{openquestion}[\cc@thmcnter]{\OpenQuestion}
+\newtheorem{problem}[\cc@thmcnter]{\Problem}
+\newtheorem{proposition}[\cc@thmcnter]{\Proposition}
+\newtheorem{question}[\cc@thmcnter]{\Question}
+\newtheorem{remark}[\cc@thmcnter]{\Remark}
+\newtheorem{result}[\cc@thmcnter]{\Result}
+\newtheorem{theorem}[\cc@thmcnter]{\Theorem}
+\newtheorem{thesis}[\cc@thmcnter]{\Thesis}
+\newtheorem{warning}[\cc@thmcnter]{\Warning}
\newenvironment{example}[1][]{%
\cc@ifempty{#1}
{\namedtheorem{\Example}}%