\newenvironment
& \renewenvironment
\newenvironment{env}[nargs]{begdef}{enddef} \newenvironment{env}[nargs][default]{begdef}{enddef} \renewenvironment{env}[nargs]{begdef}{enddef}
These commands define or redefine an environment env, that is,
\begin{
env} ... \end{
env}
.
\newenvironment
, env
must not be an existing environment, and the command \
env
must be undefined. For \renewenvironment
, env must be
the name of an existing environment.
\begin{
env}
; a
construct of the form #
n in begdef is replaced by
the text of the nth argument.
\end{
env}
. It
may not contain any argument parameters.