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>
6 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
7 # Chapter dependence added Oct '16 by Andrew Parsloe <aparsloe@clear.net.nz>
9 # The environments defined are :
23 # - Case (by inclusion)
26 # We need separate counters for each theorem-like style.
69 OutlinerName thm "Definitions & Theorems"
81 LabelString "Additional Theorem Text"
82 Tooltip "Additional text appended to the theorem header"
96 LabelString "Theorem \thetheorem."
107 \ifx\thechapter\undefined
108 \newtheorem{thm}{\protect\theoremname}
110 \newtheorem{thm}{\protect\theoremname}[chapter]
114 \providecommand{\theoremname}{_(Theorem)}
117 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
126 LabelString "Corollary \thecorollary."
129 \ifx\thechapter\undefined
130 \newtheorem{cor}{\protect\corollaryname}
132 \newtheorem{cor}{\protect\corollaryname}[chapter]
135 LabelCounter corollary
137 \providecommand{\corollaryname}{_(Corollary)}
140 \addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
148 LabelString "Lemma \thelemma."
151 \ifx\thechapter\undefined
152 \newtheorem{lem}{\protect\lemmaname}
154 \newtheorem{lem}{\protect\lemmaname}[chapter]
158 \providecommand{\lemmaname}{_(Lemma)}
161 \addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
170 LabelString "Proposition \theproposition."
173 \ifx\thechapter\undefined
174 \newtheorem{prop}{\protect\propositionname}
176 \newtheorem{prop}{\protect\propositionname}[chapter]
180 \providecommand{\propositionname}{_(Proposition)}
183 \addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
185 LabelCounter proposition
192 LabelString "Conjecture \theconjecture."
195 \ifx\thechapter\undefined
196 \newtheorem{conjecture}{\protect\conjecturename}
198 \newtheorem{conjecture}{\protect\conjecturename}[chapter]
202 \providecommand{\conjecturename}{_(Conjecture)}
205 \addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
207 LabelCounter conjecture
214 LabelString "Fact \thefact."
217 \ifx\thechapter\undefined
218 \newtheorem{fact}{\protect\factname}
220 \newtheorem{fact}{\protect\factname}[chapter]
224 \providecommand{\factname}{_(Fact)}
227 \addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
236 LabelString "Definition \thedefinition."
245 \theoremstyle{definition}
246 \ifx\thechapter\undefined
247 \newtheorem{defn}{\protect\definitionname}
249 \newtheorem{defn}{\protect\definitionname}[chapter]
253 \providecommand{\definitionname}{_(Definition)}
256 \addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
258 LabelCounter definition
265 LabelString "Example \theexample."
267 \theoremstyle{definition}
268 \ifx\thechapter\undefined
269 \newtheorem{example}{\protect\examplename}
271 \newtheorem{example}{\protect\examplename}[chapter]
276 \providecommand{\examplename}{_(Example)}
279 \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
288 LabelString "Problem \theproblem."
290 \theoremstyle{definition}
291 \ifx\thechapter\undefined
292 \newtheorem{problem}{\protect\problemname}
294 \newtheorem{problem}{\protect\problemname}[chapter]
299 \providecommand{\problemname}{_(Problem)}
302 \addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
311 LabelString "Exercise \theexercise."
313 \theoremstyle{definition}
314 \ifx\thechapter\undefined
315 \newtheorem{xca}{\protect\exercisename}
317 \newtheorem{xca}{\protect\exercisename}[chapter]
322 \providecommand{\exercisename}{_(Exercise)}
325 \addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
327 LabelCounter exercise
334 LabelString "Solution \thesolution."
336 \theoremstyle{definition}
337 \ifx\thechapter\undefined
338 \newtheorem{sol}{\protect\solutionname}
340 \newtheorem{sol}{\protect\solutionname}[chapter]
345 \providecommand{\solutionname}{_(Solution)}
348 \addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
350 LabelCounter solution
357 LabelString "Remark \theremark."
367 \theoremstyle{remark}
368 \ifx\thechapter\undefined
369 \newtheorem{rem}{\protect\remarkname}
371 \newtheorem{rem}{\protect\remarkname}[chapter]
375 \providecommand{\remarkname}{_(Remark)}
378 \addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
387 LabelString "Claim \theclaim."
389 \theoremstyle{remark}
390 \ifx\thechapter\undefined
391 \newtheorem{claim}{\protect\claimname}
393 \newtheorem{claim}{\protect\claimname}[chapter]
398 \providecommand{\claimname}{_(Claim)}
401 \addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
407 Input theorems-case.inc