From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15611 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: listings.sty Date: Mon, 28 Jun 2004 16:39:35 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40E02DA7.7090605@wxs.nl> References: <40DFD0D9.4030801@wxs.nl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1088433765 26599 80.91.224.253 (28 Jun 2004 14:42:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Jun 2004 14:42:45 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jun 28 16:42:25 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BexKy-0003BA-00 for ; Mon, 28 Jun 2004 16:42:24 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3346210B48; Mon, 28 Jun 2004 16:42:20 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 8445C10B09 for ; Mon, 28 Jun 2004 16:39:38 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5SEdYqp011123 for ; Mon, 28 Jun 2004 16:39:34 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 2B107235BB; Mon, 28 Jun 2004 16:39:37 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 37CD718574 for ; Mon, 28 Jun 2004 14:39:35 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15611 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15611 Peter Münster wrote: >On Mon, 28 Jun 2004, Hans Hagen wrote: > > > >>what is listings.sty providing? >> >> > >Hello Hans, >here some features of listings.sty: >- support for a lot of languages (for example C) >- easy to add further languages >- line breaking (see my email from 19. June mentioning \lstinline) >- line numbering >- different options for column alignment >- escaping to TeX >- layout elements (frames, spacing, background, captions, etc) >- indexing >- floating listings >- special treatment of comments >- a lot more... > >I don't know about all the \definetyping features (only those, that are >documented), perhaps the capabilities of ConTeXt are already sufficient. On >the other side, listings.sty is a very great package and mostly written in >Plain TeX. So perhaps it's worth the effort. I don't know... > > A verbatim environment is tricky because one has to play with catcodes and the endcondition. There are also some spacing issues when used in combination with other macro package features. Another complication is that active characters are used for other features as well. I had put it on my todo list to reimplement some of the context verbatim features using etex (more robust and faster). When cooking up a new environment, it's best to separate functionality and use built in support when possible. For instance, line numbering, layout elements, floating listings are kind of independent of such a mechanisms. If some features are missing in the current verbatim environment (one of the older parts of context) i can add them if needed. On the other hand, it does not hurt to have multiple alternatives. One potential problem with third party modules is that they set tex variables without context knowing about it. Also, redefining low level context macros is asking for problems, so if some special kind of support is needed for a user module, better ask me so that i can provide that low level feature in the kernel. Third party modules start with t-* Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------