1 #\DeclareLyXModule{AMS Theorems (Extended, Numbered by Type within Chapters)}
2 #\DeclareCategory{Maths}
4 #Defines some additional theorem environments for use with the
5 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
6 #Condition, Note, Notation, Summary, Acknowledgement, Conclusion,
7 #Assumption, and Case, in both numbered and non-numbered forms.
8 #Contrary to the plain AMS-Extended module, the different theorem
9 #types provided here each have a separate counter, restarted with each
10 #new chapter (e.g., criterion 1.1, criterion 1.2, axiom 1.1, assumption 1.1, #criterion 2.1, criterion 2.2, axiom 2.1..., as opposed to criterion 1,
11 #criterion 2, axiom 3, assumption 4...)
13 #Requires: theorems-ams-chap-bytype
15 # Original Author : David L. Johnson <dlj0@lehigh.edu>
16 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
17 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
18 # Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
19 # Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
20 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
21 # Chapter dependence added Oct '16 by Andrew Parsloe <aparsloe@clear.net.nz>
27 # The environnements defined (regular and starred) are :
40 # We need separate counters for each theorem-like style.
66 Counter acknowledgement
67 GuiName Acknowledgement
80 # additional (AMS-extended) environments
85 LabelString "Criterion \thecriterion."
88 \ifx\thechapter\undefined
89 \newtheorem{criterion}{\protect\criterionname}
91 \newtheorem{criterion}{\protect\criterionname}[chapter]
95 \providecommand{\criterionname}{_(Criterion)}
98 \addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
100 LabelCounter criterion
107 LabelString "Criterion."
110 \newtheorem*{criterion*}{\protect\criterionname}
113 \providecommand{\criterionname}{_(Criterion)}
116 \addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
123 LatexName lyxalgorithm
124 LabelString "Algorithm \thealgorithm."
127 \ifx\thechapter\undefined
128 \newtheorem{lyxalgorithm}{\protect\algorithmname}
130 \newtheorem{lyxalgorithm}{\protect\algorithmname}[chapter]
134 \providecommand{\algorithmname}{_(Algorithm)}
137 \addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
139 LabelCounter algorithm
145 LatexName lyxalgorithm*
146 LabelString "Algorithm."
149 \newtheorem*{lyxalgorithm*}{\protect\algorithmname}
152 \providecommand{\algorithmname}{_(Algorithm)}
155 \addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
163 LabelString "Axiom \theaxiom."
166 \ifx\thechapter\undefined
167 \newtheorem{ax}{\protect\axiomname}
169 \newtheorem{ax}{\protect\axiomname}[chapter]
173 \providecommand{\axiomname}{_(Axiom)}
176 \addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
188 \newtheorem*{ax*}{\protect\axiomname}
191 \providecommand{\axiomname}{_(Axiom)}
194 \addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
202 LabelString "Condition \thecondition."
204 \theoremstyle{definition}
205 \ifx\thechapter\undefined
206 \newtheorem{condition}{\protect\conditionname}
208 \newtheorem{condition}{\protect\conditionname}[chapter]
212 \providecommand{\conditionname}{_(Condition)}
215 \addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
217 LabelCounter condition
222 CopyStyle Definition*
224 LabelString "Condition."
226 \theoremstyle{definition}
227 \newtheorem*{condition*}{\protect\conditionname}
230 \providecommand{\conditionname}{_(Condition)}
233 \addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
241 LabelString "Note \thenote."
243 \theoremstyle{remark}
244 \ifx\thechapter\undefined
245 \newtheorem{note}{\protect\notename}
247 \newtheorem{note}{\protect\notename}[chapter]
251 \providecommand{\notename}{_(Note)}
254 \addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
265 \theoremstyle{remark}
266 \newtheorem*{note*}{\protect\notename}
269 \providecommand{\notename}{_(Note)}
272 \addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
280 LabelString "Notation \thenotation."
282 \theoremstyle{remark}
283 \ifx\thechapter\undefined
284 \newtheorem{notation}{\protect\notationname}
286 \newtheorem{notation}{\protect\notationname}[chapter]
290 \providecommand{\notationname}{_(Notation)}
293 \addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
295 LabelCounter notation
302 LabelString "Notation."
304 \theoremstyle{remark}
305 \newtheorem*{notation*}{\protect\notationname}
308 \providecommand{\notationname}{_(Notation)}
311 \addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
319 LabelString "Summary \thesummary."
321 \theoremstyle{remark}
322 \ifx\thechapter\undefined
323 \newtheorem{summary}{\protect\summaryname}
326 \newtheorem{summary}{\protect\summaryname}[chapter]
330 \providecommand{\summaryname}{_(Summary)}
333 \addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
342 LabelString "Summary."
344 \theoremstyle{remark}
345 \newtheorem*{summary*}{\protect\summaryname}
348 \providecommand{\summaryname}{_(Summary)}
351 \addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
356 Style Acknowledgement
358 LatexName acknowledgement
359 LabelString "Acknowledgement \theacknowledgement."
361 \theoremstyle{remark}
362 \ifx\thechapter\undefined
363 \newtheorem{acknowledgement}{\protect\acknowledgementname}
365 \newtheorem{acknowledgement}{\protect\acknowledgementname}[chapter]
369 \providecommand{\acknowledgementname}{_(Acknowledgement)}
372 \addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
374 LabelCounter acknowledgement
378 Style Acknowledgement*
380 LatexName acknowledgement*
381 LabelString "Acknowledgement."
383 \theoremstyle{remark}
384 \newtheorem*{acknowledgement*}{\protect\acknowledgementname}
387 \providecommand{\acknowledgementname}{_(Acknowledgement)}
390 \addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
398 LabelString "Conclusion \theconclusion."
400 \theoremstyle{remark}
401 \ifx\thechapter\undefined
402 \newtheorem{conclusion}{\protect\conclusionname}
404 \newtheorem{conclusion}{\protect\conclusionname}[chapter]
408 \providecommand{\conclusionname}{_(Conclusion)}
411 \addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
413 LabelCounter conclusion
419 LatexName conclusion*
420 LabelString "Conclusion."
422 \theoremstyle{remark}
423 \newtheorem*{conclusion*}{\protect\conclusionname}
426 \providecommand{\conclusionname}{_(Conclusion)}
429 \addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
437 LabelString "Assumption \theassumption."
440 \ifx\thechapter\undefined
441 \newtheorem{assumption}{\protect\assumptionname}
443 \newtheorem{assumption}{\protect\assumptionname}[chapter]
447 \providecommand{\assumptionname}{_(Assumption)}
450 \addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
452 LabelCounter assumption
458 LatexName assumption*
459 LabelString "Assumption."
462 \newtheorem*{assumption*}{\protect\assumptionname}
465 \providecommand{\assumptionname}{_(Assumption)}
468 \addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
476 LabelString "Question \thequestion."
479 \ifx\thechapter\undefined
480 \newtheorem{question}{\protect\questionname}
482 \newtheorem{question}{\protect\questionname}[chapter]
486 \providecommand{\questionname}{_(Question)}
489 \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
491 LabelCounter question
497 LabelString "Question."
500 \newtheorem*{question*}{\protect\questionname}
503 \providecommand{\questionname}{_(Question)}
506 \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
510 Input theorems-refprefix.inc