X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-chap-bytype.module;h=2bc0c17fd693a771392e6a99802e4e05d5fd9462;hb=761648b1f7d1df9de87921143b8004b6d3dd21e9;hp=c35f7cbb179c4da0a5c4074193f8183c8b31f559;hpb=2dfaebd2433d4dba46d50bca3d5b02044b54ff64;p=lyx.git diff --git a/lib/layouts/theorems-chap-bytype.module b/lib/layouts/theorems-chap-bytype.module index c35f7cbb17..2bc0c17fd6 100644 --- a/lib/layouts/theorems-chap-bytype.module +++ b/lib/layouts/theorems-chap-bytype.module @@ -1,4 +1,5 @@ -#\DeclareLyXModule{Theorems (Numbered by Type within Chapters)} +#\DeclareLyXModule{Standard Theorems (Numbered by Type within Chapters)} +#\DeclareCategory{Maths} #DescriptionBegin #Defines some theorem environments for use with non-AMS classes. Contrary to the #plain Theorem module, the different theorem types provided here each have a separate @@ -11,43 +12,55 @@ # Author: Paul Rubin (hacked from Richard Heck's various modules) -Format 25 +Format 82 # We need separate counters for each theorem-like style. Counter theorem + GuiName Theorem Within chapter End Counter corollary + GuiName Corollary Within chapter End Counter lemma + GuiName Lemma Within chapter End Counter proposition + GuiName Proposition Within chapter End Counter conjecture + GuiName Conjecture Within chapter End Counter fact + GuiName Fact Within chapter End Counter definition + GuiName Definition Within chapter End Counter example + GuiName Example Within chapter End Counter problem + GuiName Problem Within chapter End Counter exercise + GuiName Exercise Within chapter End Counter remark + GuiName Remark Within chapter End Counter claim + GuiName Claim Within chapter End @@ -55,9 +68,9 @@ Style Theorem Preamble \theoremstyle{plain} \ifx\thechapter\undefined - \newtheorem{thm}{Theorem} + \newtheorem{thm}{\protect\theoremname} \else - \newtheorem{thm}{Theorem}[chapter] + \newtheorem{thm}{\protect\theoremname}[chapter] \fi EndPreamble End @@ -67,9 +80,9 @@ Style Corollary Preamble \theoremstyle{plain} \ifx\thechapter\undefined - \newtheorem{cor}{Corollary} + \newtheorem{cor}{\protect\corollaryname} \else - \newtheorem{cor}{Corollary}[chapter] + \newtheorem{cor}{\protect\corollaryname}[chapter] \fi EndPreamble End @@ -79,9 +92,9 @@ Style Lemma Preamble \theoremstyle{plain} \ifx\thechapter\undefined - \newtheorem{lem}{Lemma} + \newtheorem{lem}{\protect\lemmaname} \else - \newtheorem{lem}{Lemma}[chapter] + \newtheorem{lem}{\protect\lemmaname}[chapter] \fi EndPreamble End @@ -91,9 +104,9 @@ Style Proposition Preamble \theoremstyle{plain} \ifx\thechapter\undefined - \newtheorem{prop}{Proposition} + \newtheorem{prop}{\protect\propositionname} \else - \newtheorem{prop}{Proposition}[chapter] + \newtheorem{prop}{\protect\propositionname}[chapter] \fi EndPreamble End @@ -103,9 +116,9 @@ Style Conjecture Preamble \theoremstyle{plain} \ifx\thechapter\undefined - \newtheorem{conjecture}{Conjecture} + \newtheorem{conjecture}{\protect\conjecturename} \else - \newtheorem{conjecture}{Conjecture}[chapter] + \newtheorem{conjecture}{\protect\conjecturename}[chapter] \fi EndPreamble End @@ -115,9 +128,9 @@ Style Fact Preamble \theoremstyle{plain} \ifx\thechapter\undefined - \newtheorem{fact}{Fact} + \newtheorem{fact}{\protect\factname} \else - \newtheorem{fact}{Fact}[chapter] + \newtheorem{fact}{\protect\factname}[chapter] \fi EndPreamble End @@ -127,9 +140,9 @@ Style Definition Preamble \theoremstyle{definition} \ifx\thechapter\undefined - \newtheorem{defn}{Definition} + \newtheorem{defn}{\protect\definitionname} \else - \newtheorem{defn}{Definition}[chapter] + \newtheorem{defn}{\protect\definitionname}[chapter] \fi EndPreamble End @@ -139,9 +152,9 @@ Style Example Preamble \theoremstyle{definition} \ifx\thechapter\undefined - \newtheorem{example}{Example} + \newtheorem{example}{\protect\examplename} \else - \newtheorem{example}{Example}[chapter] + \newtheorem{example}{\protect\examplename}[chapter] \fi EndPreamble End @@ -151,9 +164,9 @@ Style Problem Preamble \theoremstyle{definition} \ifx\thechapter\undefined - \newtheorem{problem}{Problem} + \newtheorem{problem}{\protect\problemname} \else - \newtheorem{problem}{Problem}[chapter] + \newtheorem{problem}{\protect\problemname}[chapter] \fi EndPreamble End @@ -163,9 +176,9 @@ Style Exercise Preamble \theoremstyle{definition} \ifx\thechapter\undefined - \newtheorem{xca}{Exercise} + \newtheorem{xca}{\protect\exercisename} \else - \newtheorem{xca}{Exercise}[chapter] + \newtheorem{xca}{\protect\exercisename}[chapter] \fi EndPreamble End @@ -175,9 +188,9 @@ Style Remark Preamble \theoremstyle{remark} \ifx\thechapter\undefined - \newtheorem{rem}{Remark} + \newtheorem{rem}{\protect\remarkname} \else - \newtheorem{rem}{Remark}[chapter] + \newtheorem{rem}{\protect\remarkname}[chapter] \fi EndPreamble End @@ -187,9 +200,9 @@ Style Claim Preamble \theoremstyle{remark} \ifx\thechapter\undefined - \newtheorem{claim}{Claim} + \newtheorem{claim}{\protect\claimname} \else - \newtheorem{claim}{Claim}[chapter] + \newtheorem{claim}{\protect\claimname}[chapter] \fi EndPreamble End