\newenvironment
\newenvironment{nam}[args]{begdef}{enddef}
\renewenvironment{nam}[args]{begdef}{enddef}
These commands define or redefine an environment.
\newenvironment{jmeno}[argumenty]{begdef}{enddef}
\renewenvironment{jmeno}[argumenty]{begdef}{enddef}
Tyto prikazy definuji resp. redefinuji prostredi.
- nam The name of the environment. For \newenvironment there
must be no currently defined environment by that name, and the
command \nam must be undefined. For \renewenvironment the
environment must already be defined.
- args An integer from 1 to 9 denoting the number of arguments of
the newly-defined environment. The default is no arguments.
- begdef The text substituted for every occurrence of
\begin{name}; a parameter of the form #n in cmd is replaced by
the text of the nth argument when this substitution takes place.
- enddef The text substituted for every occurrence of \end{nam}.
It may not contain any argument parameters.
- jmeno - jmeno definovaneho prostredi. Pro \newenvironment
nesmi byt prostredi shodneho jmena jiz drive definovano, a navic nesmi
byt definovan ani prikaz shodneho jmena (\jmeno). Pro
\renewenvironment naopak prostredi musi byt uz definovano.
- argumenty - cele cislo od 1 do 9 urcujici pocet argumentu
prave definovaneho prostredi. Standardne rovno nule.
- begdef - text, ktery bude substituovan za kazdy vyskyt
\begin{jmeno} . Parametr #n je nahrazen textem n-teho
argumentu pri uskutecneni substituce.
- enddef - text, ktery bude substituovan za kazdy vyskyt
\end{jmeno} . Parametr #n je nahrazen textem n-teho
argumentu pri uskutecneni substituce.