1 # Original Author : David L. Johnson <dlj0@lehigh.edu>
2 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
4 # Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
5 # Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
7 # The environnements defined are :
20 # - Case (regular only -- defined as an enumeration)
42 LabelString "Theorem \thetheorem."
52 \newtheorem{thm}{\protect\theoremname}
55 \providecommand{\theoremname}{_(Theorem)}
58 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
68 LabelString "Corollary \thetheorem."
70 \newtheorem{cor}[thm]{\protect\corollaryname}
73 \providecommand{\corollaryname}{_(Corollary)}
76 \addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
85 LabelString "Lemma \thetheorem."
87 \newtheorem{lem}[thm]{\protect\lemmaname}
90 \providecommand{\lemmaname}{_(Lemma)}
93 \addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
102 LabelString "Proposition \thetheorem."
104 \newtheorem{prop}[thm]{\protect\propositionname}
107 \providecommand{\propositionname}{_(Proposition)}
110 \addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
119 LabelString "Conjecture \thetheorem."
121 \newtheorem{conjecture}[thm]{\protect\conjecturename}
124 \providecommand{\conjecturename}{_(Conjecture)}
127 \addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
136 LabelString "Fact \thetheorem."
138 \newtheorem{fact}[thm]{\protect\factname}
141 \providecommand{\factname}{_(Fact)}
144 \addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
153 LabelString "Definition \thetheorem."
162 \theoremstyle{definition}
163 \newtheorem{defn}[thm]{\protect\definitionname}
166 \providecommand{\definitionname}{_(Definition)}
169 \addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
177 LabelString "Example \thetheorem."
179 \theoremstyle{definition}
180 \newtheorem{example}[thm]{\protect\examplename}
183 \providecommand{\examplename}{_(Example)}
186 \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
194 LabelString "Problem \thetheorem."
196 \theoremstyle{definition}
197 \newtheorem{problem}[thm]{\protect\problemname}
200 \providecommand{\problemname}{_(Problem)}
203 \addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
211 LabelString "Exercise \thetheorem."
213 \theoremstyle{definition}
214 \newtheorem{xca}[thm]{\protect\exercisename}
217 \providecommand{\exercisename}{_(Exercise)}
220 \addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
229 LabelString "Remark \thetheorem."
239 \theoremstyle{remark}
240 \newtheorem{rem}[thm]{\protect\remarkname}
243 \providecommand{\remarkname}{_(Remark)}
246 \addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
254 LabelString "Claim \thetheorem."
256 \theoremstyle{remark}
257 \newtheorem{claim}[thm]{\protect\claimname}
260 \providecommand{\claimname}{_(Claim)}
263 \addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
268 # Define Case as an enumeration environment
274 LeftMargin "Case ###."
275 LabelString "Case #."
282 \newenvironment{caseenv}
283 {\begin{list}{{\itshape\ \protect\casename} \arabic{casectr}.}{%
284 \setlength{\leftmargin}{\labelwidth}
285 \addtolength{\leftmargin}{\parskip}
286 \setlength{\itemindent}{\listparindent}
287 \setlength{\itemsep}{\medskipamount}
288 \setlength{\topsep}{\itemsep}}
289 \setcounter{casectr}{0}
290 \usecounter{casectr}}
294 \providecommand{\casename}{_(Case)}
297 \addto\captions$$lang{\renewcommand{\casename}{_(Case)}}