\newcommand command, there is a command
to create your own environments. The newenvironment command uses the
following syntax:
Again newenvironment can have
an optional argument. The material specified
in the before argument is processed before the text in the
environment gets processed. The material in the after argument gets
processed when the \end{name} command is encountered.
The example below illustrates the usage of the newenvironment
command.
The num argument is used the same way as in the
\newcommand command. LATEX makes sure that you do not define
an environment that already exists. If you ever want to change an
existing command, you can use the renewenvironment command. It
uses the same syntax as the newenvironment command.
The commands used in this example will be explained later. For the
rule command see page
, for stretch go to
page
, and more information on hspace can be
found on page
.