mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 23:15:19 +00:00
b32b4a545c
Actually, not all of these do contain counters, but my grepping wasn't sophisticated enough to catch them. Not a big deal.... I don't think there are errors here, but if you see weird behavior with counters in some file or other, it's possible I missed something. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26782 a592a061-630c-0410-9148-cb99ea01b6c8
26 lines
490 B
Plaintext
26 lines
490 B
Plaintext
#\DeclareLyXModule{Theorems (Order By Chapter)}
|
|
#DescriptionBegin
|
|
#Numbers theorems and the like by chapter. Use this module only with
|
|
#layouts that provide a chapter environment.
|
|
#DescriptionEnd
|
|
#Requires: theorems-std | theorems-ams
|
|
|
|
# Author: Richard Heck <rgheck@comcast.net>
|
|
|
|
Format 10
|
|
|
|
Counter theorem
|
|
Within chapter
|
|
End
|
|
|
|
Style Theorem
|
|
Preamble
|
|
\ifx\thechapter\undefined
|
|
\newtheorem{thm}{Theorem}
|
|
\else
|
|
\newtheorem{thm}{Theorem}[chapter]
|
|
\fi
|
|
|
|
EndPreamble
|
|
End
|