mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
adefdf8eeb
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
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
#\DeclareLyXModule{Standard Theorems (Numbered by Section)}
|
|
#\DeclareCategory{Maths}
|
|
#DescriptionBegin
|
|
#Numbers theorems and the like by section (i.e., the counter is reset at
|
|
#each section start).
|
|
#DescriptionEnd
|
|
#Requires: theorems-std | theorems-ams
|
|
#Excludes: theorems-chap
|
|
|
|
# Author: Richard Kimberly Heck <rikiheck@lyx.org>
|
|
|
|
Format 104
|
|
|
|
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
|
|
\theoremstyle{plain}
|
|
\newtheorem{thm}{\protect\theoremname}[section]
|
|
EndPreamble
|
|
End
|