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 \providecommand{\theoremname}{Theorem}
54 \newtheorem{thm}{\protect\theoremname}
57 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}\fi}
67 LabelString "Corollary \thetheorem."
69 \providecommand{\corollaryname}{Corollary}
71 \newtheorem{cor}[thm]{\protect\corollaryname}
74 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}\fi}
83 LabelString "Lemma \thetheorem."
85 \providecommand{\lemmaname}{Lemma}
87 \newtheorem{lem}[thm]{\protect\lemmaname}
90 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}\fi}
99 LabelString "Proposition \thetheorem."
101 \providecommand{\propositionname}{Proposition}
103 \newtheorem{prop}[thm]{\protect\propositionname}
106 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}\fi}
115 LabelString "Conjecture \thetheorem."
117 \providecommand{\conjecturename}{Conjecture}
119 \newtheorem{conjecture}[thm]{\protect\conjecturename}
122 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}\fi}
131 LabelString "Fact \thetheorem."
133 \providecommand{\factname}{Fact}
135 \newtheorem{fact}[thm]{\protect\factname}
138 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}\fi}
147 LabelString "Definition \thetheorem."
156 \providecommand{\definitionname}{Definition}
157 \theoremstyle{definition}
158 \newtheorem{defn}[thm]{\protect\definitionname}
161 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}\fi}
169 LabelString "Example \thetheorem."
171 \providecommand{\examplename}{Example}
172 \theoremstyle{definition}
173 \newtheorem{example}[thm]{\protect\examplename}
176 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}\fi}
184 LabelString "Problem \thetheorem."
186 \providecommand{\problemname}{Problem}
187 \theoremstyle{definition}
188 \newtheorem{problem}[thm]{\protect\problemname}
191 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}\fi}
199 LabelString "Exercise \thetheorem."
201 \providecommand{\exercisename}{Exercise}
202 \theoremstyle{definition}
203 \newtheorem{xca}[thm]{\protect\exercisename}
206 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}\fi}
215 LabelString "Remark \thetheorem."
225 \providecommand{\remarkname}{Remark}
226 \theoremstyle{remark}
227 \newtheorem{rem}[thm]{\protect\remarkname}
230 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}\fi}
238 LabelString "Claim \thetheorem."
240 \providecommand{\claimname}{Claim}
241 \theoremstyle{remark}
242 \newtheorem{claim}[thm]{\protect\claimname}
245 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}\fi}
250 # Define Case as an enumeration environment
254 LatexType Item_Environment
258 LeftMargin "Case ###."
265 AlignPossible Block, Left
267 LabelString "Case #."
273 \providecommand{\casename}{Case}
275 \newenvironment{caseenv}
276 {\begin{list}{{\itshape\ \protect\casename} \arabic{casectr}.}{%
277 \setlength{\leftmargin}{\labelwidth}
278 \addtolength{\leftmargin}{\parskip}
279 \setlength{\itemindent}{\listparindent}
280 \setlength{\itemsep}{\medskipamount}
281 \setlength{\topsep}{\itemsep}}
282 \setcounter{casectr}{0}
283 \usecounter{casectr}}
287 \AtBeginDocument{\ifx\LdfInit\undefined\relax\else\addto\captions$$lang{\renewcommand{\casename}{_(Case)}}\fi}