X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-chap.module;h=40727f1b41e74fb724a73cb16a30b8fb5899a58b;hb=9c8955ffd9df1a38a617bcbdf011c7b890ea23d1;hp=f21cb4b2e11a2a4e914c13914311354bfef61f4e;hpb=f5a5be4d188a20ee2a5c0213ee11bf64c0908841;p=lyx.git diff --git a/lib/layouts/theorems-chap.module b/lib/layouts/theorems-chap.module index f21cb4b2e1..40727f1b41 100644 --- a/lib/layouts/theorems-chap.module +++ b/lib/layouts/theorems-chap.module @@ -1,22 +1,28 @@ -#\DeclareLyXModule{Theorems (Order By Chapter)} +#\DeclareLyXModule{Theorems (Numbered by Chapter)} #DescriptionBegin -#Defines some theorem environments for use with non-AMS classes. The theorems are -#numbered by chapter. +#Numbers theorems and the like by chapter (i.e., the counter is reset at +#each chapter start). Use this module only with document classes that provide a chapter +#environment. #DescriptionEnd -#Requires: Theorems | Theorems (AMS) +#Requires: theorems-std | theorems-ams +#Excludes: theorems-sec +#Category: theorems # Author: Richard Heck -# Adapted from amsmaths.inc -Format 6 +Format 45 -Counter - Name theorem +Counter theorem Within chapter End Style Theorem Preamble - \newtheorem{thm}{Theorem}[chapter] + \theoremstyle{plain} + \ifx\thechapter\undefined + \newtheorem{thm}{\protect\theoremname} + \else + \newtheorem{thm}{\protect\theoremname}[chapter] + \fi EndPreamble End