Fix handling of \chapter, in case some idiot has said `\csname 1.6.0
authormdw <mdw>
Sun, 24 Feb 2002 12:35:55 +0000 (12:35 +0000)
committermdw <mdw>
Sun, 24 Feb 2002 12:35:55 +0000 (12:35 +0000)
chapter\endcsname'.

mdwthm.dtx

index f4a17d2..ccbcb73 100644 (file)
@@ -1,6 +1,6 @@
 % \begin{meta-comment}
 %
 % \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
 %
 %
 % Standard theorem typesetting
 %
@@ -9,6 +9,10 @@
 %----- Revision history -----------------------------------------------------
 %
 % $Log: mdwthm.dtx,v $
 %----- 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.
 %
 % 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}
 %
 %<+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
 %% \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
 \@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}
 \if@tempswa\toks@\expandafter{\the\toks@[chapter]}\fi
 \the\toks@
 \newtheorem*{theorem*}{Theorem}