Question. (The title should be sufficient to understand the question.)
Comments. (0) Normally, and justifiably so, pdflatex gives the error message "Command etc already defined."
(1) Leaving in multiple command definitions may not best practice, but there can be pragmatic reasons to do so, temporarily, and clean up the document in a later pass.
\let\foo\relax\newcommand\foo{...}or\def\foo{..}– David Carlisle May 18 '17 at 15:35\def\foo{}once at the beginning of the inputs and force all (re)definitions to be of the type\renewcommand\foo...or\def\foo..., your choice. – Steven B. Segletes May 18 '17 at 15:49\let\newcommand\DeclareRobustCommand. If not you use the\declarecommandfrom here https://tex.stackexchange.com/questions/228862/how-to-define-or-redefine-a-command-mixing-providecommand-renewcommand/228865#228865 and map \newcommand to it. – Ulrike Fischer May 18 '17 at 15:59