1 #% Do not delete the line below; configure depends on this
2 #\DeclareLyXModule{Named Theorems}
4 # Facilitates the use of named theorems. The name of the theorem
5 # goes into the "Short Title" inset.
7 #Requires: theorems-ams | theorems-starred
8 #Original Author: John Perry
14 LabelString "Named Theorem."
17 \newcommand\thmsname{Theorem}
18 \newcommand\nm@thmtype{theorem}
20 \newtheorem*{namedtheorem}{\thmsname}
21 \newenvironment{namedthm}[1][Undefined Theorem Name]{
22 \ifx{#1}{Undefined Theorem Name}\renewcommand\nm@thmtype{theorem*}
23 \else\renewcommand\thmsname{#1}\renewcommand\nm@thmtype{namedtheorem}