I have an existing command, defined within a \newenvironment:
\newcommand{\param}[3]{\textbf{##1} & \emph{##2} & ##3 \\ }
That command on its own works fine.
What I want to be able to do is to alias this command for typical use cases. The second argument to this command is a type, so I want something like:
\providecommand{\number}{}
\renewcommand{\number}[2]{\param{##1}{number}{##2}}
However, this gives the error: Argument of \number has an extra }.
This error appears even if the \number command is never used.
What would the cause of this be?
\numberis a TeX primitive, so redefining it is probably causing an issue with a place where the original version is expected. – Joseph Wright♦ Jan 17 at 6:23