Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!ukc!icdoc!sot-ecs!spqr From: spqr@ecs.soton.ac.uk (Sebastian Rahtz) Newsgroups: comp.text.tex Subject: Re: A "code" environment with caption. Message-ID: Date: 12 Jun 90 17:13:37 GMT References: <1990Jun11.145827.26313@metro.ucc.su.OZ.AU> Sender: spqr@ecs.soton.ac.uk Organization: Southampton University Computer Science Lines: 17 In-reply-to: mathas_a@maths.su.oz.au's message of 11 Jun 90 14:58:27 GMT In article <1990Jun11.145827.26313@metro.ucc.su.OZ.AU> mathas_a@maths.su.oz.au ( Andrew ) writes: Notice what the main problem is here: you have to end your code fragment with a \end{verbatim} and an \end{code} because verbatim only stops when it finds an \end{verbatim}. people who spend lots of time hacking at enhancements of LaTeX's verbatim environment would probably be interested in Rainer Schoepf's rewrite of the whole thing, which *does* permit its inclusion in new environments. I think Don Hosek has the package at Claremont; it is certainly part of the UK TeX Archive. Sebastian Rahtz -- Sebastian Rahtz S.Rahtz@uk.ac.soton.ecs (JANET) Computer Science S.Rahtz@ecs.soton.ac.uk (Bitnet) Southampton S09 5NH, UK S.Rahtz@sot-ecs.uucp (uucp)