Somewhere in my document, I have a
\newcommand{\macomm}{blabla}
Later, I would like to define a TeX macro with the same name:
\def\macomm{blabla}
So my questions:
- Is it possible?
- Will this make any problem?
- Should/can I "kill" the definition of the command, before defining the TeX macro?
\def\macomm{...}inside a group, when the group ends the previous definition will be restored. – egreg Jun 12 '12 at 08:29\defoverwrites an existing definition. No need to kill it before. – cgnieder Jun 12 '12 at 08:30\newcommand{\foo}{bar}and\def\foo{bar}both create a macro called\foowith expansionbar. See What is the difference between \def and \newcommand? – Joseph Wright Jun 12 '12 at 08:30