lyx_mirror/lib/layouts/theorems-chap.module
Richard Heck d252730dff New AddToPreamble tag for layout files. This tag will ADD some information to the document premable rather than completely over-write it, as the Preamble tag does.
Increment layout format to 7.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-24 13:11:16 +00:00

27 lines
505 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 7
Counter
Name theorem
Within chapter
End
Style Theorem
Preamble
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
EndPreamble
End