% \begin{meta-comment}
%
-% $Id: mdwthm.dtx,v 1.1 2002/02/03 20:49:03 mdw Exp $
+% $Id: mdwthm.dtx,v 1.2 2002/02/24 12:35:55 mdw Exp $
%
% Standard theorem typesetting
%
%----- Revision history -----------------------------------------------------
%
% $Log: mdwthm.dtx,v $
+% Revision 1.2 2002/02/24 12:35:55 mdw
+% Fix handling of \chapter, in case some idiot has said `\csname
+% chapter\endcsname'.
+%
% Revision 1.1 2002/02/03 20:49:03 mdw
% Checkin for new build system.
%
%<+thmstyle> [2001/09/16 1.0 numbers-in-the-margin theorem style]
% \end{meta-comment}
%
-% \CheckSum{140}
+% \CheckSum{145}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
\@tempswatrue%
\ifx\if@article\iftrue\@tempswafalse\fi
\ifx\chapter\@@undefined\@tempswafalse\fi
+\ifx\chapter\relax\@tempswafalse\fi
\if@tempswa\toks@\expandafter{\the\toks@[chapter]}\fi
\the\toks@
\newtheorem*{theorem*}{Theorem}