]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/amsmaths.inc
include intl/libintl.h that is relative to $TOP_SRCDIR/src
[lyx.git] / lib / layouts / amsmaths.inc
index bc95175f39b02dcc4d942af57ada5be42093f602..973956f4fc011e598b77a2c7a7ec6d917513b80c 100644 (file)
@@ -5,57 +5,39 @@
 # numbered environments (figures as well) containing the section number.
 # (Themorem (1.1), Corollary (1.2) Theorem (1.3), etc.
 # These are only the theorems styles environnements
+# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
 
-
-# The environnements defined are :
+# The environnements defined (regular and starred) are :
 # - Theorem
-# - Theorem*
 # - Corollary
-# - Corollary*
 # - Lemma
-# - Lemma*
 # - Proposition
-# - Proposition*
 # - Conjecture
-# - Conjecture*
 # - Criterion
 # - Algorithm
 # - Axiom
 # - Definition
-# - Definition*
 # - Example
-# - Example*
 # - Condition
-# - Condition*
 # - Problem
-# - Problem*
 # - Exercise
 # - Remark
-# - Remark*
 # - Note
-# - Note*
 # - Notation
-# - Notation*
 # - Claim
-# - Claim*
 # - Summary
 # - Acknowledgement
-# - Acknowledgement*
-# - Case
 # - Conclusion
-# - Conclusion*
 # - Fact
-# - Fact*
+# - Assumption
+# - Case (regular only -- defined as an enumeration)
 
 Format 5
-Preamble
-  \theoremstyle{plain}
-       \newtheorem{thm}{Theorem}[section]
-EndPreamble
 
 
 Counter
        Name                 theorem
+       Within               section
 End
 
 
@@ -63,8 +45,8 @@ Style Theorem
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             thm
-       #DependsOn             TheoremStyle
        NextNoIndent          1
+       OptionalArgs          1
        LabelSep              xx
        ParIndent             MMM
        ParSkip               0.4
@@ -85,6 +67,10 @@ Style Theorem
          Shape               Up
          Series              Bold
        EndFont
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem{thm}{Theorem}[section]
+       EndPreamble
 End
 
 
@@ -102,6 +88,7 @@ End
 
 Style Corollary
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             cor
        LabelString           "Corollary \thetheorem."
        Preamble
@@ -124,6 +111,7 @@ End
 
 Style Lemma
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             lem
        LabelString           "Lemma \thetheorem."
        Preamble
@@ -146,6 +134,7 @@ End
 
 Style Proposition
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             prop
        LabelString           "Proposition \thetheorem."
        Preamble
@@ -168,6 +157,7 @@ End
 
 Style Conjecture
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             conjecture
        LabelString           "Conjecture \thetheorem."
        Preamble
@@ -190,6 +180,7 @@ End
 
 Style Criterion
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             criterion
        LabelString           "Criterion \thetheorem."
        Preamble
@@ -198,9 +189,20 @@ Style Criterion
        EndPreamble
 End
 
+Style Criterion*
+       CopyStyle             Theorem*
+       LatexName             criterion*
+       LabelString           "Criterion."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem*{criterion*}{Criterion}
+       EndPreamble
+End
+
 
 Style Algorithm
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             algorithm
        LabelString           "Algorithm \thetheorem."
        Preamble
@@ -210,8 +212,20 @@ Style Algorithm
 End
 
 
+Style Algorithm*
+       CopyStyle             Theorem*
+       LatexName             algorithm*
+       LabelString           "Algorithm."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem*{algorithm*}{Algorithm}
+       EndPreamble
+End
+
+
 Style Fact
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             fact
        LabelString           "Fact \thetheorem."
        Preamble
@@ -234,6 +248,7 @@ End
 
 Style Axiom
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             ax
        LabelString           "Axiom \thetheorem."
        Preamble
@@ -243,8 +258,20 @@ Style Axiom
 End
 
 
+Style Axiom*
+       CopyStyle             Theorem*
+       LatexName             ax*
+       LabelString           "Axiom."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem*{ax*}{Axiom}
+       EndPreamble
+End
+
+
 Style Definition
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             defn
        LabelString           "Definition \thetheorem."
        Font
@@ -345,15 +372,14 @@ Style Exercise
        LabelString           "Exercise \thetheorem."
        Preamble
          \theoremstyle{definition}
-         %%Delete [section] for sequential numbering
-         \newtheorem{xca}[section]{Exercise}
+         \newtheorem{xca}[thm]{Exercise}
        EndPreamble
 End
 
 
 Style Exercise*
        CopyStyle             Definition*
-       LatexName             xca
+       LatexName             xca*
        LabelString           "Exercise."
        Preamble
          \theoremstyle{definition}
@@ -364,6 +390,7 @@ End
 
 Style Remark
        CopyStyle             Theorem
+       DependsOn             Theorem
        LatexName             rem
        LabelString           "Remark \thetheorem."
        Font
@@ -454,7 +481,7 @@ Style Notation*
        LabelString           "Notation."
        Preamble
          \theoremstyle{remark}
-         \newtheorem*{notation*}[thm]{Notation}
+         \newtheorem*{notation*}{Notation}
        EndPreamble
 End
 
@@ -470,6 +497,17 @@ Style Summary
 End
 
 
+Style Summary*
+       CopyStyle             Remark*
+       LatexName             summary*
+       LabelString           "Summary."
+       Preamble
+         \theoremstyle{remark}
+         \newtheorem*{summary*}{Summary}
+       EndPreamble
+End
+
+
 Style Acknowledgement
        CopyStyle             Remark
        LatexName             acknowledgement
@@ -492,17 +530,6 @@ Style Acknowledgement*
 End
 
 
-Style Case
-       CopyStyle             Remark
-       LatexName             case
-       LabelString           "Case \thetheorem."
-       Preamble
-         \theoremstyle{remark}
-         \newtheorem{case}{Case} %%Numbering of Cases not keyed to sections
-       EndPreamble
-End
-
-
 Style Conclusion
        CopyStyle             Remark
        LatexName             conclusion
@@ -523,3 +550,42 @@ Style Conclusion*
          \newtheorem*{conclusion*}{Conclusion}
        EndPreamble
 End
+
+
+Style Assumption
+       CopyStyle             Theorem
+       DependsOn             Theorem
+       LatexName             assumption
+       LabelString           "Assumption \thetheorem."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem{assumption}[thm]{Assumption}
+       EndPreamble
+End
+
+
+Style Assumption*
+       CopyStyle             Theorem*
+       LatexName             assumption*
+       LabelString           "Assumption."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem*{assumption*}{Assumption}
+       EndPreamble
+End
+
+
+# Define Case as an enumeration environment
+Style Case
+       CopyStyle             Enumerate
+       LatexName             caseenv
+       LabelType             Static
+       LeftMargin            "MMMMMMN"
+       LabelString           "Case #:"
+       Preamble
+         \newcounter{casectr}
+         \newenvironment{caseenv}
+         {\begin{list}{\bfseries\upshape Case \arabic{casectr}:}{}\setcounter{casectr}{0}\usecounter{casectr}}
+         {\end{list}}
+       EndPreamble
+End