Is there a merged command \maybenewcommand that is either \newcommand or \renewcommand, depending on the situation: if the command is not yet defined, use \newcommand and use \renewcommand otherwise.
I currently merge multiple papers into a large document. I use the same commands in several of them, with slightly different meaning. I would now like to avoid to check for each \newcommand if it has been used in earlier places and then replacing them by \renewcommand by hand.
Thanks, Christian
\providecommandor the combinations\providecommand\foo{}\renewcommand\foo...(which will always create a definition)? – Joseph Wright May 20 '14 at 09:24\let– 1010011010 May 20 '14 at 10:24