On Fri, 2011-11-04 at 15:15 +0100, Wolfgang Schuster wrote: > Am 04.11.2011 um 02:33 schrieb Kip Warner: > > > On Thu, 2011-11-03 at 05:26 +0100, Wolfgang Schuster wrote: > >> ??? > > There was so many nonsense on your definition for your CodeExample environment, I don’t know where you found the code but I’m going to explain what was wrong, this will help you write something better next time. > > What you defined was the following piece of code: > > \crlf > \setupbackground[..,.=.,..] > \startbackground > \startlines[style=type] > \setupalign[right] > \starttyping > … > \stoptyping > \stoplines > \stopbackground > \crlf > > 1. You used \crlf to add a empty line at the begin and end of the environment, better is to use \blank or \blank[line]. > > 2. You used the lines environment but it useless here because the typing environment already takes care that each line in the input is also line of its own in the output. > > 3. The style “type” is also useless because typing will overwrite this setting with its own style which is also “type”. > > 4. The alignment setup is another setting which is ignored because typing itself has a align key which is used. > > Wolfgang Thanks for the explanation, Wolfgang. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com