lyx_mirror/lib/layouts/theorems-chap.module
Scott Kostyshak 4b33e60346 Update layouts
I do not commit the update to the following file since it has a
non-trivial change:

  lib/layouts/jlreq-common.inc

I'll ask for confirmation on the list before updating that file.
2024-07-24 10:19:31 -04:00

46 lines
1.5 KiB
Plaintext

#\DeclareLyXModule{Standard Theorems (Numbered by Chapter)}
#\DeclareCategory{Maths}
#DescriptionBegin
#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-std | theorems-ams
#Excludes: theorems-sec
# Author: Richard Kimberly Heck <rikiheck@lyx.org>
Format 106
Counter theorem
GuiName Theorem
Within chapter
LaTeXName thm
RefFormat thm "Theorem \thechapter.\arabic{theorem}"
RefFormat cor "Corollary \thechapter.\arabic{theorem}"
RefFormat lem "Lemma \thechapter.\arabic{theorem}"
RefFormat prop "Proposition \thechapter.\arabic{theorem}"
RefFormat conj "Conjecture \thechapter.\arabic{theorem}"
RefFormat def "Definition \thechapter.\arabic{theorem}"
RefFormat exa "Example \thechapter.\arabic{theorem}"
RefFormat prob "Problem \thechapter.\arabic{theorem}"
RefFormat exer "Exercise \thechapter.\arabic{theorem}"
RefFormat solu "Solution \thechapter.\arabic{theorem}"
RefFormat rem "Remark \thechapter.\arabic{theorem}"
RefFormat claim "Claim \thechapter.\arabic{theorem}"
RefFormat fact "Fact \thechapter.\arabic{theorem}"
RefFormat cri "Criterion \thechapter.\arabic{theorem}"
RefFormat alg "Algorithm \thechapter.\arabic{theorem}"
End
Style Theorem
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{\protect\theoremname}
\else
\newtheorem{thm}{\protect\theoremname}[chapter]
\fi
EndPreamble
End