next up previous contents index
Next: Extra Space Up: New Commands, Environments and Previous: New Commands   Contents   Index

New Environments

Just as with the \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 [*].



David Barreda Tena 2007-09-12



Alojamiento con 500GB de espacio y 5000GB de ancho de banda por 4 euros al mes
Cómo contratar servicios de hosting con Dreamhost
Descuento, promocode para dreamhost de $50