]> git.lyx.org Git - lyx.git/blob - lib/layouts/theorems-sec.module
Fixes for theorem modules from Paul Rubin.
[lyx.git] / lib / layouts / theorems-sec.module
1 #\DeclareLyXModule{Theorems (By Section)}
2 #DescriptionBegin
3 #Numbers theorems and the like by section.
4 #DescriptionEnd
5 #Requires: theorems-std | theorems-ams
6 #Excludes: theorems-chap
7
8 # Author: Richard Heck <rgheck@comcast.net>
9
10 Format 14
11
12 Counter theorem
13         Within         section
14 End
15
16 Style Theorem
17         Preamble
18                 \theoremstyle{plain}
19                 \newtheorem{thm}{\protect\theoremname}[section]
20         EndPreamble
21         LangPreamble
22                 \providecommand{\theoremname}{_(Theorem)}
23         EndLangPreamble
24         BabelPreamble
25                 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
26         EndBabelPreamble
27 End