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 'Additional Theorem Text' argument.
7 #Original Author: John Perry
17 LabelString "Theorem."
21 LabelString "Additional Theorem Text"
22 Tooltip "Additional text appended to the theorem header"
43 \newtheorem*{thm*}{\protect\theoremname}
46 \providecommand{\theoremname}{_(Theorem)}
49 \addto\captions$$lang{\renewcommand{\theoremname}{_(Theorem)}}
58 LabelString "Named Theorem."
61 \newcommand\thmsname{\protect\theoremname}
62 \newcommand\nm@thmtype{theorem}
64 \newtheorem*{namedtheorem}{\thmsname}
65 \newenvironment{namedthm}[1][Undefined Theorem Name]{
66 \ifx{#1}{Undefined Theorem Name}\renewcommand\nm@thmtype{theorem*}
67 \else\renewcommand\thmsname{#1}\renewcommand\nm@thmtype{namedtheorem}