I am trying to create the following commands. I want to replace \exp
by a command that takes an input and outputs \exp(#1)
. Trying to copy something that I was shown before, I tried the following
\let\EXP\relax
\DeclareRobustCommand{\EXP}{\exp}
\rewnewcommand{\exp}[1]{\EXP(#1)}
However, upon compiling, I get a TeX capacity exceeded, sorry
error. If I don't redefine exp
, but call it something like expm
, then there are no issues. I'd prefer to redefine it though. How can I get around this?
\exp
with\exp
.\EXP(1)
give you?\EXP(1)
is (/should be) just the same as what\exp(1)
would normally do\DeclareRobustCommand{\EXP}[1]{\exp(#1)}