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
13 LabelString "Named Theorem."
16 \newcommand\thmsname{Theorem}
17 \newcommand\nm@thmtype{theorem}
19 \newtheorem*{namedtheorem}{\thmsname}
20 \newenvironment{namedthm}[1][Undefined Theorem Name]{
21 \ifx{#1}{Undefined Theorem Name}\renewcommand\nm@thmtype{theorem*}
22 \else\renewcommand\thmsname{#1}\renewcommand\nm@thmtype{namedtheorem}