]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
Revert "New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the...
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Standard Theorems (Numbered by Chapter)}
2 #\DeclareCategory{Maths}
3 #DescriptionBegin
4 #Numbers theorems and the like by chapter (i.e., the counter is reset at
5 #each chapter start). Use this module only with document classes that provide a chapter
6 #environment.
7 #DescriptionEnd
8 #Requires: theorems-std | theorems-ams
9 #Excludes: theorems-sec
10
11 # Author: Richard Kimberly Heck <rikiheck@lyx.org>
12
13 Format 99
14
15 Counter theorem
16         GuiName Theorem
17         Within chapter
18         LaTeXName thm
19 End
20
21 Style Theorem
22         Preamble
23                 \theoremstyle{plain}
24                 \ifx\thechapter\undefined
25                         \newtheorem{thm}{\protect\theoremname}
26                 \else
27                         \newtheorem{thm}{\protect\theoremname}[chapter]
28                 \fi
29         EndPreamble
30 End