]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/theorems-ams-extended-bytype.module
layout files: add the new AllowedPlacement
[lyx.git] / lib / layouts / theorems-ams-extended-bytype.module
index 546b621bb35dc168c6bb62d6eee8d7c4e13bd442..ecbf808f63f390276d23060ffac769223462e790 100644 (file)
@@ -18,7 +18,7 @@
 # Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
 # Hacked June '09 by Paul Rubin <rubin@msu.edu> to use separate counters
 
-Format 28
+Format 54
 
 Requires       amsmath
 
@@ -33,6 +33,7 @@ Requires      amsmath
 # - Acknowledgement
 # - Conclusion
 # - Assumption
+# - Question
 
 # We need separate counters for each theorem-like style.
 Counter criterion
@@ -55,6 +56,8 @@ Counter conclusion
 End
 Counter assumption
 End
+Counter question
+End
 
 
 Style Criterion
@@ -63,8 +66,14 @@ Style Criterion
        LabelString           "Criterion \thecriterion."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{criterion}{Criterion}
+         \newtheorem{criterion}{\protect\criterionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\criterionname}{_(Criterion)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
+       EndBabelPreamble
        LabelCounter          criterion
 End
 
@@ -74,31 +83,49 @@ Style Criterion*
        LabelString           "Criterion."
        Preamble
          \theoremstyle{plain}
-         \newtheorem*{criterion*}{Criterion}
+         \newtheorem*{criterion*}{\protect\criterionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\criterionname}{_(Criterion)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\criterionname}{_(Criterion)}}
+       EndBabelPreamble
 End
 
 
 Style Algorithm
        CopyStyle             Theorem
-       LatexName             algorithm
+       LatexName             lyxalgorithm
        LabelString           "Algorithm \thealgorithm."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{algorithm}{Algorithm}
+         \newtheorem{lyxalgorithm}{\protect\algorithmname}
        EndPreamble
+       LangPreamble
+         \providecommand{\algorithmname}{_(Algorithm)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
+       EndBabelPreamble
        LabelCounter          algorithm
 End
 
 
 Style Algorithm*
        CopyStyle             Theorem*
-       LatexName             algorithm*
+       LatexName             lyxalgorithm*
        LabelString           "Algorithm."
        Preamble
          \theoremstyle{plain}
-         \newtheorem*{algorithm*}{Algorithm}
+         \newtheorem*{lyxalgorithm*}{\protect\algorithmname}
        EndPreamble
+       LangPreamble
+         \providecommand{\algorithmname}{_(Algorithm)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\algorithmname}{_(Algorithm)}}
+       EndBabelPreamble
 End
 
 
@@ -108,8 +135,14 @@ Style Axiom
        LabelString           "Axiom \theaxiom."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{ax}{Axiom}
+         \newtheorem{ax}{\protect\axiomname}
        EndPreamble
+       LangPreamble
+         \providecommand{\axiomname}{_(Axiom)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
+       EndBabelPreamble
        LabelCounter          axiom
 End
 
@@ -120,8 +153,14 @@ Style Axiom*
        LabelString           "Axiom."
        Preamble
          \theoremstyle{plain}
-         \newtheorem*{ax*}{Axiom}
+         \newtheorem*{ax*}{\protect\axiomname}
        EndPreamble
+       LangPreamble
+         \providecommand{\axiomname}{_(Axiom)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\axiomname}{_(Axiom)}}
+       EndBabelPreamble
 End
 
 
@@ -131,8 +170,14 @@ Style Condition
        LabelString           "Condition \thecondition."
        Preamble
          \theoremstyle{definition}
-         \newtheorem{condition}{Condition}
+         \newtheorem{condition}{\protect\conditionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\conditionname}{_(Condition)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
+       EndBabelPreamble
        LabelCounter          condition
 End
 
@@ -143,8 +188,14 @@ Style Condition*
        LabelString           "Condition."
        Preamble
          \theoremstyle{definition}
-         \newtheorem*{condition*}{Condition}
+         \newtheorem*{condition*}{\protect\conditionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\conditionname}{_(Condition)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\conditionname}{_(Condition)}}
+       EndBabelPreamble
 End
 
 
@@ -154,8 +205,14 @@ Style Note
        LabelString           "Note \thenote."
        Preamble
          \theoremstyle{remark}
-         \newtheorem{note}{Note}
+         \newtheorem{note}{\protect\notename}
        EndPreamble
+       LangPreamble
+         \providecommand{\notename}{_(Note)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
+       EndBabelPreamble
        LabelCounter          note
 End
 
@@ -166,8 +223,14 @@ Style Note*
        LabelString           "Note."
        Preamble
          \theoremstyle{remark}
-         \newtheorem*{note*}{Note}
+         \newtheorem*{note*}{\protect\notename}
        EndPreamble
+       LangPreamble
+         \providecommand{\notename}{_(Note)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\notename}{_(Note)}}
+       EndBabelPreamble
 End
 
 
@@ -177,8 +240,14 @@ Style Notation
        LabelString           "Notation \thenotation."
        Preamble
          \theoremstyle{remark}
-         \newtheorem{notation}{Notation}
+         \newtheorem{notation}{\protect\notationname}
        EndPreamble
+       LangPreamble
+         \providecommand{\notationname}{_(Notation)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
+       EndBabelPreamble
        LabelCounter          notation
 End
 
@@ -189,8 +258,14 @@ Style Notation*
        LabelString           "Notation."
        Preamble
          \theoremstyle{remark}
-         \newtheorem*{notation*}{Notation}
+         \newtheorem*{notation*}{\protect\notationname}
        EndPreamble
+       LangPreamble
+         \providecommand{\notationname}{_(Notation)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\notationname}{_(Notation)}}
+       EndBabelPreamble
 End
 
 
@@ -200,8 +275,14 @@ Style Summary
        LabelString           "Summary \thesummary."
        Preamble
          \theoremstyle{remark}
-         \newtheorem{summary}{Summary}
+         \newtheorem{summary}{\protect\summaryname}
        EndPreamble
+       LangPreamble
+         \providecommand{\summaryname}{_(Summary)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
+       EndBabelPreamble
        LabelCounter          summary
 End
 
@@ -212,8 +293,14 @@ Style Summary*
        LabelString           "Summary."
        Preamble
          \theoremstyle{remark}
-         \newtheorem*{summary*}{Summary}
+         \newtheorem*{summary*}{\protect\summaryname}
        EndPreamble
+       LangPreamble
+         \providecommand{\summaryname}{_(Summary)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\summaryname}{_(Summary)}}
+       EndBabelPreamble
 End
 
 
@@ -223,8 +310,14 @@ Style Acknowledgement
        LabelString           "Acknowledgement \theacknowledgement."
        Preamble
          \theoremstyle{remark}
-         \newtheorem{acknowledgement}{Acknowledgement}
+         \newtheorem{acknowledgement}{\protect\acknowledgementname}
        EndPreamble
+       LangPreamble
+         \providecommand{\acknowledgementname}{_(Acknowledgement)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
+       EndBabelPreamble
        LabelCounter          acknowledgement
 End
 
@@ -235,8 +328,14 @@ Style Acknowledgement*
        LabelString           "Acknowledgement."
        Preamble
          \theoremstyle{remark}
-         \newtheorem*{acknowledgement*}{Acknowledgement}
+         \newtheorem*{acknowledgement*}{\protect\acknowledgementname}
        EndPreamble
+       LangPreamble
+         \providecommand{\acknowledgementname}{_(Acknowledgement)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\acknowledgementname}{_(Acknowledgement)}}
+       EndBabelPreamble
 End
 
 
@@ -246,8 +345,14 @@ Style Conclusion
        LabelString           "Conclusion \theconclusion."
        Preamble
          \theoremstyle{remark}
-         \newtheorem{conclusion}{Conclusion}
+         \newtheorem{conclusion}{\protect\conclusionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\conclusionname}{_(Conclusion)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
+       EndBabelPreamble
        LabelCounter          conclusion
 End
 
@@ -258,8 +363,14 @@ Style Conclusion*
        LabelString           "Conclusion."
        Preamble
          \theoremstyle{remark}
-         \newtheorem*{conclusion*}{Conclusion}
+         \newtheorem*{conclusion*}{\protect\conclusionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\conclusionname}{_(Conclusion)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\conclusionname}{_(Conclusion)}}
+       EndBabelPreamble
 End
 
 
@@ -269,8 +380,14 @@ Style Assumption
        LabelString           "Assumption \theassumption."
        Preamble
          \theoremstyle{plain}
-         \newtheorem{assumption}{Assumption}
+         \newtheorem{assumption}{\protect\assumptionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\assumptionname}{_(Assumption)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
+       EndBabelPreamble
        LabelCounter          assumption
 End
 
@@ -281,6 +398,48 @@ Style Assumption*
        LabelString           "Assumption."
        Preamble
          \theoremstyle{plain}
-         \newtheorem*{assumption*}{Assumption}
+         \newtheorem*{assumption*}{\protect\assumptionname}
+       EndPreamble
+       LangPreamble
+         \providecommand{\assumptionname}{_(Assumption)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\assumptionname}{_(Assumption)}}
+       EndBabelPreamble
+End
+
+Style Question
+       CopyStyle             Theorem
+       DependsOn             Theorem
+       LatexName             question
+       LabelString           "Question \thequestion."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem{question}{\protect\questionname}
        EndPreamble
+       LangPreamble
+         \providecommand{\questionname}{_(Question)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
+       EndBabelPreamble
+       LabelCounter          question
 End
+
+Style Question*
+       CopyStyle             Theorem*
+       LatexName             question*
+       LabelString           "Question."
+       Preamble
+         \theoremstyle{plain}
+         \newtheorem*{question*}{\protect\questionname}
+       EndPreamble
+       LangPreamble
+         \providecommand{\questionname}{_(Question)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\questionname}{_(Question)}}
+       EndBabelPreamble
+End
+
+Input theorems-refprefix.inc