\newcommand
& \renewcommand
\newcommand
and \renewcommand
define and redefine a
command, respectively. Synopses:
\newcommand{cmd}[nargs]{defn} \renewcommand{cmd}[nargs]{defn} \newcommand{cmd}[nargs][default]{defn} \renewcommand{cmd}[nargs][default]{defn}
\
. For \newcommand
, it
must not be already defined and must not begin with \end
; for
\renewcommand
, it must already be defined.
cmd
; a
construct of the form #
n in defn is replaced by the
text of the nth argument.