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."
53 \newtheorem{thm}{\protect\theoremname}
56 \providecommand{\theoremname}{_(Theorem)}
59 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
69 LabelString "Corollary \thetheorem."
72 \newtheorem{cor}[thm]{\protect\corollaryname}
75 \providecommand{\corollaryname}{_(Corollary)}
78 \addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
87 LabelString "Lemma \thetheorem."
90 \newtheorem{lem}[thm]{\protect\lemmaname}
93 \providecommand{\lemmaname}{_(Lemma)}
96 \addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
105 LabelString "Proposition \thetheorem."
108 \newtheorem{prop}[thm]{\protect\propositionname}
111 \providecommand{\propositionname}{_(Proposition)}
114 \addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
123 LabelString "Conjecture \thetheorem."
126 \newtheorem{conjecture}[thm]{\protect\conjecturename}
129 \providecommand{\conjecturename}{_(Conjecture)}
132 \addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
141 LabelString "Fact \thetheorem."
144 \newtheorem{fact}[thm]{\protect\factname}
147 \providecommand{\factname}{_(Fact)}
150 \addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
159 LabelString "Definition \thetheorem."
168 \theoremstyle{definition}
169 \newtheorem{defn}[thm]{\protect\definitionname}
172 \providecommand{\definitionname}{_(Definition)}
175 \addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
183 LabelString "Example \thetheorem."
185 \theoremstyle{definition}
186 \newtheorem{example}[thm]{\protect\examplename}
189 \providecommand{\examplename}{_(Example)}
192 \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
200 LabelString "Problem \thetheorem."
202 \theoremstyle{definition}
203 \newtheorem{problem}[thm]{\protect\problemname}
206 \providecommand{\problemname}{_(Problem)}
209 \addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
217 LabelString "Exercise \thetheorem."
219 \theoremstyle{definition}
220 \newtheorem{xca}[thm]{\protect\exercisename}
223 \providecommand{\exercisename}{_(Exercise)}
226 \addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
235 LabelString "Remark \thetheorem."
245 \theoremstyle{remark}
246 \newtheorem{rem}[thm]{\protect\remarkname}
249 \providecommand{\remarkname}{_(Remark)}
252 \addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
260 LabelString "Claim \thetheorem."
262 \theoremstyle{remark}
263 \newtheorem{claim}[thm]{\protect\claimname}
266 \providecommand{\claimname}{_(Claim)}
269 \addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
274 # Define Case as an enumeration environment
280 LeftMargin "Case ###."
281 LabelString "Case #."
288 \newenvironment{caseenv}
289 {\begin{list}{{\itshape\ \protect\casename} \arabic{casectr}.}{%
290 \setlength{\leftmargin}{\labelwidth}
291 \addtolength{\leftmargin}{\parskip}
292 \setlength{\itemindent}{\listparindent}
293 \setlength{\itemsep}{\medskipamount}
294 \setlength{\topsep}{\itemsep}}
295 \setcounter{casectr}{0}
296 \usecounter{casectr}}
300 \providecommand{\casename}{_(Case)}
303 \addto\captions$$lang{\renewcommand{\casename}{_(Case)}}
308 Input theorems-refprefix.inc