ty. 16. januar 2007 23:10 skreiv Steve Litt: > On Tuesday 16 January 2007 16:41, Steve Litt wrote: > > On Friday 21 January 2005 13:52, Matej Cepl wrote: > > > Steve Litt wrote: <snip> > > What I want to know is this: where does \enddescription come from? > > I just realized neither \endolddescription nor \enddescription are used > subsequently. What's the purpose of the line: > > \let\endolddescription=\enddescription
Hi Steve, I am no LaTeX guru, but as I understand the two first lines: \let\olddescription=\description \let\endolddescription=\enddescription are just there to rename the start and end names of the envirnoment so the old and unchanges envirnoment still can be used. from http://www.personal.ceu.hu/tex/defs.htm: >\newenvironment, \renewenvironment > \newenvironment{nam}[args]{begdef}{enddef} > \renewenvironment{nam}[args]{begdef}{enddef} > >These commands define or redefine an environment. > >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. > >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} or >\begin{name}{arg1, arg2, }; 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. so (re)newenvionment constructs both \begin{environment} and \end{envirnoment} and both begin and end has to be renamed or be replaced be the renewcommand I hope this help. And if I am mistaken I hope someone with a better grasp of LaTeX corrects me. :) Ingar