lyx_mirror/lib/layouts/theorems-chap.module
Richard Heck dc5eee4767 Fixes for the theorem modules from Paul Rubin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30909 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-07 19:00:57 +00:00

28 lines
598 B
Plaintext

#\DeclareLyXModule{Theorems (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
#Excludes: theorems-sec
# Author: Richard Heck <rgheck@comcast.net>
# Tweaked by Paul Rubin <rubin@msu.edu> June '09 (added theoremstyle)
Format 11
Counter theorem
Within chapter
End
Style Theorem
Preamble
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
EndPreamble
End