# 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>
-# The starred environnements defined are :
+# The starred environments defined are :
# - Theorem
# - Corollary
# - Lemma
# - Example
# - Problem
# - Exercise
+# - Solution
# - Remark
# - Claim
# - Proof
-Format 29
+# TODO: for DocBook, there is no difference with standard (not starred) environments.
+# How to encode the subtlety?
+
+Format 100
+
+OutlinerName thm "Definitions & Theorems"
Style Theorem*
- Category Theorem
+ Category Reasoning
LatexType Environment
Margin First_Dynamic
LatexName thm*
LabelType Static
LabelString "Theorem."
NextNoIndent 1
- OptionalArgs 1
+ ResetArgs 1
+ AddToToc thm
+ IsTocCaption 1
+ Argument 1
+ LabelString "Additional Theorem Text"
+ Tooltip "Additional text appended to the theorem header"
+ IsTocCaption 1
+ EndArgument
LabelSep xx
ParIndent MMM
ParSkip 0.4
\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
BabelPreamble
\addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='lemma'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\propositionname}{_(Proposition)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='proposition'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\conjecturename}{_(Conjecture)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='conjecture'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\factname}{_(Fact)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='fact'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\definitionname}{_(Definition)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='definition'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble
+ DocBookWrapperTag informalexample
+ DocBookTag para
+ DocBookAttr ""
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\problemname}{_(Problem)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='problem'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\exercisename}{_(Exercise)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='exercise'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
+End
+
+
+Style Solution*
+ CopyStyle Definition*
+ LatexName sol*
+ LabelString "Solution."
+ Preamble
+ \theoremstyle{definition}
+ \newtheorem*{sol*}{\protect\solutionname}
+ EndPreamble
+ LangPreamble
+ \providecommand{\solutionname}{_(Solution)}
+ EndLangPreamble
+ BabelPreamble
+ \addto\captions$$lang{\renewcommand{\solutionname}{_(Solution)}}
+ EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='solution'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\remarkname}{_(Remark)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='remark'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End
BabelPreamble
\addto\captions$$lang{\renewcommand{\claimname}{_(Claim)}}
EndBabelPreamble
+ DocBookWrapperTag figure
+ DocBookWrapperAttr role='claim'
+ DocBookTag para
+ DocBookGenerateTitle true
+ DocBookWrapperMergeWithPrevious true
End