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