X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftheorems-sec.module;h=eb808e8ee83528809fc072d567e05a65fce16253;hb=adefdf8eebb9aebccdd472482579e55758857f66;hp=b6461556fb0bc42a4d4034662f6ef1a588243e5b;hpb=f5a5be4d188a20ee2a5c0213ee11bf64c0908841;p=lyx.git diff --git a/lib/layouts/theorems-sec.module b/lib/layouts/theorems-sec.module index b6461556fb..eb808e8ee8 100644 --- a/lib/layouts/theorems-sec.module +++ b/lib/layouts/theorems-sec.module @@ -1,21 +1,40 @@ -#\DeclareLyXModule{Theorems (Order By Section)} +#\DeclareLyXModule{Standard Theorems (Numbered by Section)} +#\DeclareCategory{Maths} #DescriptionBegin -#Order theorems by section. +#Numbers theorems and the like by section (i.e., the counter is reset at +#each section start). #DescriptionEnd -#Requires: Theorems | Theorems (AMS) +#Requires: theorems-std | theorems-ams +#Excludes: theorems-chap -# Author: Richard Heck -# Adapted from amsmaths.inc +# Author: Richard Kimberly Heck -Format 6 +Format 104 -Counter - Name theorem - Within section +Counter theorem + GuiName Theorem + Within section + LaTeXName thm + RefFormat thm "Theorem \thesection.\arabic{theorem}" + RefFormat cor "Corollary \thesection.\arabic{theorem}" + RefFormat lem "Lemma \thesection.\arabic{theorem}" + RefFormat prop "Proposition \thesection.\arabic{theorem}" + RefFormat conj "Conjecture \thesection.\arabic{theorem}" + RefFormat def "Definition \thesection.\arabic{theorem}" + RefFormat exa "Example \thesection.\arabic{theorem}" + RefFormat prob "Problem \thesection.\arabic{theorem}" + RefFormat exer "Exercise \thesection.\arabic{theorem}" + RefFormat solu "Solution \thesection.\arabic{theorem}" + RefFormat rem "Remark \thesection.\arabic{theorem}" + RefFormat claim "Claim \thesection.\arabic{theorem}" + RefFormat fact "Fact \thesection.\arabic{theorem}" + RefFormat cri "Criterion \thesection.\arabic{theorem}" + RefFormat alg "Algorithm \thesection.\arabic{theorem}" End Style Theorem Preamble - \newtheorem{thm}{Theorem}[section] + \theoremstyle{plain} + \newtheorem{thm}{\protect\theoremname}[section] EndPreamble End