In the example below, the presence of \mycommand changes the first minus sign into a binary operation atom, so that the spacing between - and 1 is increased.
\documentclass{article}
\newcommand\mycommand{\mbox{ abc } }
\begin{document}
\[
\mycommand -1 = -1
\]
\end{document}
I know that this can be dealt with on a case by case basis, but I would like to change the macro definition so that the first atom after a \mycommand behaves as if it were the first atom in the equation. Is this possible?
\mycommandper se, but the fact that it produces\mbox{abc}which is an ordinary atom. If you want that a minus sign is not mistaken in that situation, write\mycommand {-1}=-1. – egreg Jun 20 '12 at 6:28\mycommandcontributes an atom to the math list, that will be the first. Wouldn't it be better to show the real thing you want to do? – egreg Jun 20 '12 at 9:43