# 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
# Chapter dependence added Oct '16 by Andrew Parsloe <aparsloe@clear.net.nz>
# - Case (by inclusion)
-# We need separate counters for each theorem-like style.
-Format 78
+Format 95
+
+Input theorems-counters-bytype.inc
+
Counter theorem
+ Within chapter
End
Counter corollary
+ Within chapter
End
Counter lemma
+ Within chapter
End
Counter proposition
+ Within chapter
End
Counter conjecture
+ Within chapter
End
Counter fact
+ Within chapter
End
Counter definition
+ Within chapter
End
Counter example
+ Within chapter
End
Counter problem
+ Within chapter
End
Counter exercise
+ Within chapter
End
Counter solution
+ Within chapter
End
Counter remark
+ Within chapter
End
Counter claim
+ Within chapter
End
OutlinerName thm "Definitions & Theorems"
AlignPossible Left
LabelType Static
LabelCounter theorem
- LabelString "Theorem \thechapter.\thetheorem."
+ LabelString "Theorem \thetheorem."
Font
Shape Italic
Size Normal
\addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
EndBabelPreamble
Requires amsthm
+ DocBookTag para
+ DocBookAttr role='theorem'
End
Style Corollary
CopyStyle Theorem
LatexName cor
- LabelString "Corollary \thechapter.\thecorollary."
+ LabelString "Corollary \thecorollary."
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
BabelPreamble
\addto\captions$$lang{\renewcommand{\corollaryname}{_(Corollary)}}
EndBabelPreamble
+ DocBookTag para
+ DocBookAttr role='corollary'
End
Style Lemma
CopyStyle Theorem
LatexName lem
- LabelString "Lemma \thechapter.\thelemma."
+ LabelString "Lemma \thelemma."
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
LabelCounter lemma
+ DocBookTag para
+ DocBookAttr role='lemma'
End
Style Proposition
CopyStyle Theorem
LatexName prop
- LabelString "Proposition \thechapter.\theproposition."
+ LabelString "Proposition \theproposition."
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
LabelCounter proposition
+ DocBookTag para
+ DocBookAttr role='proposition'
End
Style Conjecture
CopyStyle Theorem
LatexName conjecture
- LabelString "Conjecture \thechapter.\theconjecture."
+ LabelString "Conjecture \theconjecture."
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
LabelCounter conjecture
+ DocBookTag para
+ DocBookAttr role='conjecture'
End
Style Fact
CopyStyle Theorem
LatexName fact
- LabelString "Fact \thechapter.\thefact."
+ LabelString "Fact \thefact."
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
LabelCounter fact
+ DocBookTag para
+ DocBookAttr role='fact'
End
Style Definition
CopyStyle Theorem
LatexName defn
- LabelString "Definition \thechapter.\thedefinition."
+ LabelString "Definition \thedefinition."
Font
Shape Up
EndFont
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
LabelCounter definition
+ DocBookTag para
+ DocBookAttr role='definition'
End
Style Example
CopyStyle Definition
LatexName example
- LabelString "Example \thechapter.\theexample."
+ LabelString "Example \theexample."
Preamble
\theoremstyle{definition}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
LabelCounter example
+ DocBookWrapperTag informalexample
+ DocBookTag para
+ DocBookAttr ""
End
Style Problem
CopyStyle Definition
LatexName problem
- LabelString "Problem \thechapter.\theproblem."
+ LabelString "Problem \theproblem."
Preamble
\theoremstyle{definition}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
LabelCounter problem
+ DocBookTag para
+ DocBookAttr role='problem'
End
Style Exercise
CopyStyle Definition
LatexName xca
- LabelString "Exercise \thechapter.\theexercise."
+ LabelString "Exercise \theexercise."
Preamble
\theoremstyle{definition}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
LabelCounter exercise
+ DocBookTag para
+ DocBookAttr role='exercise'
End
Style Solution
CopyStyle Definition
LatexName sol
- LabelString "Solution \thechapter.\thesolution."
+ LabelString "Solution \thesolution."
Preamble
\theoremstyle{definition}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
EndBabelPreamble
LabelCounter solution
+ DocBookTag para
+ DocBookAttr role='solution'
End
Style Remark
CopyStyle Theorem
LatexName rem
- LabelString "Remark \thechapter.\theremark."
+ LabelString "Remark \theremark."
Font
Shape Up
Size Normal
\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
LabelCounter remark
+ DocBookTag note
+ DocBookItemTag para
End
Style Claim
CopyStyle Remark
LatexName claim
- LabelString "Claim \thechapter.\theclaim."
+ LabelString "Claim \theclaim."
Preamble
\theoremstyle{remark}
\ifx\thechapter\undefined
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
LabelCounter claim
+ DocBookTag para
+ DocBookAttr role='claim'
+ DocBookItemTag ""
End