[Fix] \renewnotation: check for correct argument whether it is already defined.
This commit is contained in:
parent
fb1e5bbb44
commit
76d33ff457
|
@ -623,7 +623,7 @@
|
||||||
% 8. optional: description of arguments for table of notation
|
% 8. optional: description of arguments for table of notation
|
||||||
\DeclareDocumentCommand{\renewnotation}{s o m O{0} o m O{} O{}}{%
|
\DeclareDocumentCommand{\renewnotation}{s o m O{0} o m O{} O{}}{%
|
||||||
% Check whether macro is not defined so far:
|
% Check whether macro is not defined so far:
|
||||||
\ifundef{#2}%
|
\ifundef{#3}%
|
||||||
{\PackageError{newnotation}{renewnotation: Command '\string#2' not defined.}%
|
{\PackageError{newnotation}{renewnotation: Command '\string#2' not defined.}%
|
||||||
{Misspelled name?}}{}%
|
{Misspelled name?}}{}%
|
||||||
%
|
%
|
||||||
|
|
Loading…
Reference in New Issue