1 #% Do not delete the line below; configure depends on this
2 #\DeclareLyXModule{Standard Theorems (Nameable)}
3 #\DeclareCategory{Maths}
5 # Facilitates the use of named theorems. The name of the theorem
6 # goes into the 'Additional Theorem Text' argument.
8 #Original Author: John Perry
18 LabelString "Theorem."
22 LabelString "Additional Theorem Text"
23 Tooltip "Additional text appended to the theorem header"
44 \newtheorem*{thm*}{\protect\theoremname}
47 \providecommand{\theoremname}{_(Theorem)}
50 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
59 LabelString "Named Theorem."
62 \newcommand\thmsname{\protect\theoremname}
63 \newcommand\nm@thmtype{theorem}
65 \newtheorem*{namedtheorem}{\thmsname}
66 \newenvironment{namedthm}[1][Undefined Theorem Name]{
67 \ifx{#1}{Undefined Theorem Name}\renewcommand\nm@thmtype{theorem*}
68 \else\renewcommand\thmsname{#1}\renewcommand\nm@thmtype{namedtheorem}