# Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
-# Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
+# Modularized Jan 08 by Richard Kimberly Heck <rikiheck@lyx.org>
# Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
# The environments defined are :
# - Claim
# - Case (by inclusion)
-# We need separate counters for each theorem-like style.
-Format 65
-Counter theorem
-End
-Counter corollary
-End
-Counter lemma
-End
-Counter proposition
-End
-Counter conjecture
-End
-Counter fact
-End
-Counter definition
-End
-Counter example
-End
-Counter problem
-End
-Counter exercise
-End
-Counter solution
-End
-Counter remark
-End
-Counter claim
-End
+Format 100
+
+Input theorems-counters-bytype.inc
OutlinerName thm "Definitions & Theorems"
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='theorem'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='corollary'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
LabelCounter lemma
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='lemma'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='proposition'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
LabelCounter conjecture
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='conjecture'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
LabelCounter fact
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='fact'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
LabelCounter definition
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='definition'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
LabelCounter example
+ DocBookWrapperTag informalexample
+ DocBookTag para
+ DocBookAttr ""
End
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
LabelCounter problem
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='problem'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
LabelCounter exercise
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='exercise'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
LabelCounter solution
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='solution'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
LabelCounter remark
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='remark'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
LabelCounter claim
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='claim'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
Input theorems-case.inc