Possible Duplicate:
Definining commands/abbreviations that contain numbers
newcommand name cannot include numbers for example \Mycomand123
It seems like command names starting with a numeral are not valid when using \newcommand but are valid when using \def. Are there any reasons not to define commands starting with a numeral? For example:
\newcommand{\123MHz}{\SI{123}{MHz}\xspace} % Causes errors
\def\123MHz{\SI{123}{MHz}} % seems to work fine
\defdoesn't define\123MHzbut\1with special parameters. If you would add a definition for e.g.\145MHzthe first definition will break. – Ulrike Fischer Sep 21 '12 at 09:01\setcounter{myfreq}{123}and\newcommand{freq}{\alph{myfreq}MHz\xspace}would serve your purpose better, if this number appears so often. – T. Verron Sep 21 '12 at 09:06\123to\132. – Ulrike Fischer Sep 21 '12 at 09:17