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}{Theorem}
63 LabelString "Corollary \thetheorem."
66 \newtheorem{cor}[thm]{Corollary}
75 LabelString "Lemma \thetheorem."
78 \newtheorem{lem}[thm]{Lemma}
87 LabelString "Proposition \thetheorem."
90 \newtheorem{prop}[thm]{Proposition}
99 LabelString "Conjecture \thetheorem."
102 \newtheorem{conjecture}[thm]{Conjecture}
111 LabelString "Fact \thetheorem."
114 \newtheorem{fact}[thm]{Fact}
123 LabelString "Definition \thetheorem."
132 \theoremstyle{definition}
133 \newtheorem{defn}[thm]{Definition}
141 LabelString "Example \thetheorem."
143 \theoremstyle{definition}
144 \newtheorem{example}[thm]{Example}
153 LabelString "Problem \thetheorem."
155 \theoremstyle{definition}
156 \newtheorem{problem}[thm]{Problem}
165 LabelString "Exercise \thetheorem."
167 \theoremstyle{definition}
168 \newtheorem{xca}[thm]{Exercise}
178 LabelString "Remark \thetheorem."
188 \theoremstyle{remark}
189 \newtheorem{rem}[thm]{Remark}
197 LabelString "Claim \thetheorem."
199 \theoremstyle{remark}
200 \newtheorem{claim}[thm]{Claim}
206 # Define Case as an enumeration environment
210 LatexType Item_Environment
214 LeftMargin "Case ###."
221 AlignPossible Block, Left
223 LabelString "Case #."
230 \newenvironment{caseenv}
231 {\begin{list}{{\itshape\ Case} \arabic{casectr}.}{%
232 \setlength{\leftmargin}{\labelwidth}
233 \addtolength{\leftmargin}{\parskip}
234 \setlength{\itemindent}{\listparindent}
235 \setlength{\itemsep}{\medskipamount}
236 \setlength{\topsep}{\itemsep}}
237 \setcounter{casectr}{0}
238 \usecounter{casectr}}