Define `note' conditionally, to avoid clashes with `mdwthm' among others.
authormdw <mdw>
Fri, 5 Sep 2003 16:13:44 +0000 (16:13 +0000)
committermdw <mdw>
Fri, 5 Sep 2003 16:13:44 +0000 (16:13 +0000)
mdwlist.dtx

index f93ef07..9fb252d 100644 (file)
@@ -1,6 +1,6 @@
 % \begin{meta-comment}
 %
-% $Id: mdwlist.dtx,v 1.1 2002/02/03 20:49:03 mdw Exp $
+% $Id: mdwlist.dtx,v 1.2 2003/09/05 16:13:44 mdw Exp $
 %
 % Various list-related things
 %
@@ -9,6 +9,9 @@
 %----- Revision history -----------------------------------------------------
 %
 % $Log: mdwlist.dtx,v $
+% Revision 1.2  2003/09/05 16:13:44  mdw
+% Define `note' conditionally, to avoid clashes with `mdwthm' among others.
+%
 % Revision 1.1  2002/02/03 20:49:03  mdw
 % Checkin for new build system.
 %
@@ -45,7 +48,7 @@
 %<+package>                [1996/05/02 1.1 Various list-related things]
 % \end{meta-comment}
 %
-% \CheckSum{179}
+% \CheckSum{183}
 %% \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
 % \end{itemize}
 %
 %    \begin{macrocode}
-\def\note{\@ifnextchar[\note@i{\note@i[Note]}}
-\def\note@i[#1]{%
-  \basedescript{%
-    \sbox\z@{\makelabel{#1}}%
-    \desclabelwidth{\wd\z@}%
-  }%
-  \item[\box\z@]%
-}
-\let\endnote\endbasedescript
+\ifx\note\@@undefined
+  \def\note{\@ifnextchar[\note@i{\note@i[Note]}}
+  \def\note@i[#1]{%
+    \basedescript{%
+      \sbox\z@{\makelabel{#1}}%
+      \desclabelwidth{\wd\z@}%
+    }%
+    \item[\box\z@]%
+  }
+  \let\endnote\endbasedescript
+\fi
 %    \end{macrocode}
 %
 % \end{environment}