-#\DeclareLyXModule{Theorems (Numbered by Type within Sections)}
+#\DeclareLyXModule{Standard Theorems (Numbered by Type within Sections)}
+#\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
#Requires: theorems-bytype | theorems-ams-bytype
#Excludes: theorems-std | theorems-ams | theorems-starred | theorems-chap | theorems-chap-bytype
-# Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Heck's various modules)
+# Author: Paul Rubin <rubin@msu.edu> (hacked from Richard Kimberly Heck's various modules)
-Format 31
+Format 95
+
+Input theorems-counters-bytype.inc
-# We need separate counters for each theorem-like style.
Counter theorem
- Within section
+ Within section
End
Counter corollary
- Within section
+ Within section
End
Counter lemma
- Within section
+ Within section
End
Counter proposition
- Within section
+ Within section
End
Counter conjecture
- Within section
+ Within section
End
Counter fact
- Within section
+ Within section
End
Counter definition
- Within section
+ Within section
End
Counter example
- Within section
+ Within section
End
Counter problem
- Within section
+ Within section
End
Counter exercise
- Within section
+ Within section
End
Counter remark
- Within section
+ Within section
End
Counter claim
- Within section
+ Within section
End
Style Theorem
Preamble
\theoremstyle{plain}
- \newtheorem{thm}{Theorem}[section]
+ \newtheorem{thm}{\protect\theoremname}[section]
EndPreamble
End
Style Corollary
Preamble
\theoremstyle{plain}
- \newtheorem{cor}{Corollary}[section]
+ \newtheorem{cor}{\protect\corollaryname}[section]
EndPreamble
End
Style Lemma
Preamble
\theoremstyle{plain}
- \newtheorem{lem}{Lemma}[section]
+ \newtheorem{lem}{\protect\lemmaname}[section]
EndPreamble
End
Style Proposition
Preamble
\theoremstyle{plain}
- \newtheorem{prop}{Proposition}[section]
+ \newtheorem{prop}{\protect\propositionname}[section]
EndPreamble
End
Style Conjecture
Preamble
\theoremstyle{plain}
- \newtheorem{conjecture}{Conjecture}[section]
+ \newtheorem{conjecture}{\protect\conjecturename}[section]
EndPreamble
End
Style Fact
Preamble
\theoremstyle{plain}
- \newtheorem{fact}{Fact}[section]
+ \newtheorem{fact}{\protect\factname}[section]
EndPreamble
End
Style Definition
Preamble
\theoremstyle{definition}
- \newtheorem{defn}{Definition}[section]
+ \newtheorem{defn}{\protect\definitionname}[section]
EndPreamble
End
Style Example
Preamble
\theoremstyle{definition}
- \newtheorem{example}{Example}[section]
+ \newtheorem{example}{\protect\examplename}[section]
EndPreamble
End
Style Problem
Preamble
\theoremstyle{definition}
- \newtheorem{problem}{Problem}[section]
+ \newtheorem{problem}{\protect\problemname}[section]
EndPreamble
End
Style Exercise
Preamble
\theoremstyle{definition}
- \newtheorem{xca}{Exercise}[section]
+ \newtheorem{xca}{\protect\exercisename}[section]
EndPreamble
End
Style Remark
Preamble
\theoremstyle{remark}
- \newtheorem{rem}{Remark}[section]
+ \newtheorem{rem}{\protect\remarkname}[section]
EndPreamble
End
Style Claim
Preamble
\theoremstyle{remark}
- \newtheorem{claim}{Claim}[section]
+ \newtheorem{claim}{\protect\claimname}[section]
EndPreamble
End