lyx_mirror/lib/layouts/theorems-chap.module
Scott Kostyshak adefdf8eeb Revert "Update layouts"
This reverts commit 7c041af642.

We will hold this back until we fix the issue discussed here:

  https://marc.info/?l=lyx-devel&m=171733833610242&w=2
2024-06-03 10:37:02 -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 104
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