I am writing a long latex document and use many macros for defining mathematical symbols. I would like to ensure that there is no clash in the notation. For example, something like
\newcommand{\symbolone}{A}
\newcommand{\symboltwo}{A}
should not happen. Is there something like an assertion in latex such that I can do
\assert{\symbolone != \symboltwo}
?
\ifx) but for example if\symboloneis\hat{A}and\symboltwo is\hat Athey are not equal with\ifx`, but typeset to the same thing in all cases. So it is difficult to have a robust test that matches common expectations. – David Carlisle Feb 16 '15 at 21:19