]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-chap.module
f72d8b85db95c2936b2740f0bc47c7512c69dc05
[lyx.git] / lib / layouts / theorems-chap.module
1 #\DeclareLyXModule{Theorems (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 #Excludes: theorems-sec
8
9 # Author: Richard Heck <rgheck@comcast.net>
10
11 Format 14
12
13 Counter theorem
14         Within         chapter
15 End
16
17 Style Theorem
18         Preamble
19                 \theoremstyle{plain}
20                 \ifx\thechapter\undefined
21                         \newtheorem{thm}{\protect\theoremname}
22                 \else
23                         \newtheorem{thm}{\protect\theoremname}[chapter]
24                 \fi
25         EndPreamble
26         LangPreamble
27                 \providecommand{\theoremname}{_(Theorem)}
28         EndLangPreamble
29         BabelPreamble
30                 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
31         EndBabelPreamble
32 End