5

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:

  1. Is it possible?
  2. Will this make any problem?
  3. Should/can I "kill" the definition of the command, before defining the TeX macro?
egreg
  • 1,121,712
Loic Rosnay
  • 8,167

1 Answers1

9
  1. Yes

  2. The \def will overwrite without warning the previous meaning of \macomm. Only you can decide if this is a problem.

  3. The \def already "kills" the previous definition.

The main question is why you want to use TeX-syntax in the second case. Why don't you use \renewcommand\macomm{blub}?

Ulrike Fischer
  • 327,261