1 #\DeclareLyXModule{Theorems (AMS-Extended, Numbered by Type within Chapters)}
3 #Defines some additional theorem environments for use with the
4 #AMS theorems packages. Includes Criterion, Algorithm, Axiom,
5 #Condition, Note, Notation, Summary, Acknowledgement, Conclusion,
6 #Assumption, and Case, in both numbered and non-numbered forms.
7 #Contrary to the plain AMS-Extended module, the different theorem
8 #types provided here each have a separate counter, restarted with each
9 #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,
10 #criterion 2, axiom 3, assumption 4...)
12 #Requires: theorems-ams-chap-bytype
14 # Original Author : David L. Johnson <dlj0@lehigh.edu>
15 # Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
16 # modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
17 # Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
18 # Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
19 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
20 # Chapter dependence added Oct '16 by Andrew Parsloe <aparsloe@clear.net.nz>
26 # The environnements defined (regular and starred) are :
39 # We need separate counters for each theorem-like style.
67 Counter acknowledgement
81 # additional (AMS-extended) environments
86 LabelString "Criterion \thecriterion."
89 \ifx\thechapter\undefined
90 \newtheorem{criterion}{\protect\criterionname}
92 \newtheorem{criterion}{\protect\criterionname}[chapter]
96 \providecommand{\criterionname}{_(Criterion)}
99 \addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
101 LabelCounter criterion
108 LabelString "Criterion."
111 \newtheorem*{criterion*}{\protect\criterionname}
114 \providecommand{\criterionname}{_(Criterion)}
117 \addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
124 LatexName lyxalgorithm
125 LabelString "Algorithm \thealgorithm."
128 \ifx\thechapter\undefined
129 \newtheorem{lyxalgorithm}{\protect\algorithmname}
131 \newtheorem{lyxalgorithm}{\protect\algorithmname}[chapter]
135 \providecommand{\algorithmname}{_(Algorithm)}
138 \addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
140 LabelCounter algorithm
146 LatexName lyxalgorithm*
147 LabelString "Algorithm."
150 \newtheorem*{lyxalgorithm*}{\protect\algorithmname}
153 \providecommand{\algorithmname}{_(Algorithm)}
156 \addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
164 LabelString "Axiom \theaxiom."
167 \ifx\thechapter\undefined
168 \newtheorem{ax}{\protect\axiomname}
170 \newtheorem{ax}{\protect\axiomname}[chapter]
174 \providecommand{\axiomname}{_(Axiom)}
177 \addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
189 \newtheorem*{ax*}{\protect\axiomname}
192 \providecommand{\axiomname}{_(Axiom)}
195 \addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
203 LabelString "Condition \thecondition."
205 \theoremstyle{definition}
206 \ifx\thechapter\undefined
207 \newtheorem{condition}{\protect\conditionname}
209 \newtheorem{condition}{\protect\conditionname}[chapter]
213 \providecommand{\conditionname}{_(Condition)}
216 \addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
218 LabelCounter condition
223 CopyStyle Definition*
225 LabelString "Condition."
227 \theoremstyle{definition}
228 \newtheorem*{condition*}{\protect\conditionname}
231 \providecommand{\conditionname}{_(Condition)}
234 \addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
242 LabelString "Note \thenote."
244 \theoremstyle{remark}
245 \ifx\thechapter\undefined
246 \newtheorem{note}{\protect\notename}
248 \newtheorem{note}{\protect\notename}[chapter]
252 \providecommand{\notename}{_(Note)}
255 \addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
266 \theoremstyle{remark}
267 \newtheorem*{note*}{\protect\notename}
270 \providecommand{\notename}{_(Note)}
273 \addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
281 LabelString "Notation \thenotation."
283 \theoremstyle{remark}
284 \ifx\thechapter\undefined
285 \newtheorem{notation}{\protect\notationname}
287 \newtheorem{notation}{\protect\notationname}[chapter]
291 \providecommand{\notationname}{_(Notation)}
294 \addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
296 LabelCounter notation
303 LabelString "Notation."
305 \theoremstyle{remark}
306 \newtheorem*{notation*}{\protect\notationname}
309 \providecommand{\notationname}{_(Notation)}
312 \addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
320 LabelString "Summary \thesummary."
322 \theoremstyle{remark}
323 \ifx\thechapter\undefined
324 \newtheorem{summary}{\protect\summaryname}
327 \newtheorem{summary}{\protect\summaryname}[chapter]
331 \providecommand{\summaryname}{_(Summary)}
334 \addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
343 LabelString "Summary."
345 \theoremstyle{remark}
346 \newtheorem*{summary*}{\protect\summaryname}
349 \providecommand{\summaryname}{_(Summary)}
352 \addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
357 Style Acknowledgement
359 LatexName acknowledgement
360 LabelString "Acknowledgement \theacknowledgement."
362 \theoremstyle{remark}
363 \ifx\thechapter\undefined
364 \newtheorem{acknowledgement}{\protect\acknowledgementname}
366 \newtheorem{acknowledgement}{\protect\acknowledgementname}[chapter]
370 \providecommand{\acknowledgementname}{_(Acknowledgement)}
373 \addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
375 LabelCounter acknowledgement
379 Style Acknowledgement*
381 LatexName acknowledgement*
382 LabelString "Acknowledgement."
384 \theoremstyle{remark}
385 \newtheorem*{acknowledgement*}{\protect\acknowledgementname}
388 \providecommand{\acknowledgementname}{_(Acknowledgement)}
391 \addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
399 LabelString "Conclusion \theconclusion."
401 \theoremstyle{remark}
402 \ifx\thechapter\undefined
403 \newtheorem{conclusion}{\protect\conclusionname}
405 \newtheorem{conclusion}{\protect\conclusionname}[chapter]
409 \providecommand{\conclusionname}{_(Conclusion)}
412 \addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
414 LabelCounter conclusion
420 LatexName conclusion*
421 LabelString "Conclusion."
423 \theoremstyle{remark}
424 \newtheorem*{conclusion*}{\protect\conclusionname}
427 \providecommand{\conclusionname}{_(Conclusion)}
430 \addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
438 LabelString "Assumption \theassumption."
441 \ifx\thechapter\undefined
442 \newtheorem{assumption}{\protect\assumptionname}
444 \newtheorem{assumption}{\protect\assumptionname}[chapter]
448 \providecommand{\assumptionname}{_(Assumption)}
451 \addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
453 LabelCounter assumption
459 LatexName assumption*
460 LabelString "Assumption."
463 \newtheorem*{assumption*}{\protect\assumptionname}
466 \providecommand{\assumptionname}{_(Assumption)}
469 \addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
477 LabelString "Question \thequestion."
480 \ifx\thechapter\undefined
481 \newtheorem{question}{\protect\questionname}
483 \newtheorem{question}{\protect\questionname}[chapter]
487 \providecommand{\questionname}{_(Question)}
490 \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
492 LabelCounter question
498 LabelString "Question."
501 \newtheorem*{question*}{\protect\questionname}
504 \providecommand{\questionname}{_(Question)}
507 \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
511 Input theorems-refprefix.inc