]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
Fix a bug involving module conflicts. We need to check not only that we
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Theorems (Order By Chapter)}
2 #DescriptionBegin
3 #Numbers theorems and the like by chapter. Use this module only with
4 #layouts that provide a chapter environment.
5 #DescriptionEnd
6 #Requires: theorems-std | theorems-ams
7
8 # Author: Richard Heck <rgheck@comcast.net>
9
10 Format 10
11
12 Counter theorem
13         Within         chapter
14 End
15
16 Style Theorem
17         Preamble
18                 \ifx\thechapter\undefined
19                         \newtheorem{thm}{Theorem}
20                 \else
21                         \newtheorem{thm}{Theorem}[chapter]
22                 \fi
23                 
24         EndPreamble
25 End