X-Git-Url: https://git.distorted.org.uk/~mdw/mdwtools/blobdiff_plain/86f6a31e4b41acb71ba37f3838a9ce75f7743330..6c8117560625549a95d0a41985b2416e2c00cbb0:/mdwthm.dtx

diff --git a/mdwthm.dtx b/mdwthm.dtx
index f4a17d2..ccbcb73 100644
--- a/mdwthm.dtx
+++ b/mdwthm.dtx
@@ -1,6 +1,6 @@
 % \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
 %
@@ -9,6 +9,10 @@
 %----- 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.
 %
@@ -43,7 +47,7 @@
 %<+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
@@ -135,6 +139,7 @@
 \@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}
