From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15600 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Holger_Sch=F6ner?= Newsgroups: gmane.comp.tex.context Subject: Re: Re: listings.sty Date: Mon, 28 Jun 2004 10:39:06 +0200 (CEST) Sender: ntg-context-admin@ntg.nl Message-ID: 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=US-ASCII X-Trace: sea.gmane.org 1088412205 1193 80.91.224.253 (28 Jun 2004 08:43:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Jun 2004 08:43:25 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Jun 28 10:43:13 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 1BerjM-00030i-00 for ; Mon, 28 Jun 2004 10:43:12 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 7E2C510B6C; Mon, 28 Jun 2004 10:43:08 +0200 (MEST) Original-Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by ref.ntg.nl (Postfix) with ESMTP id A539310AE8 for ; Mon, 28 Jun 2004 10:40:04 +0200 (MEST) Original-Received: from dunedain.cs.tu-berlin.de (dunedain.cs.tu-berlin.de [130.149.19.37]) by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id KAA09082 for ; Mon, 28 Jun 2004 10:40:00 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by dunedain.cs.tu-berlin.de (Postfix) with ESMTP id DAE7F9082D for ; Mon, 28 Jun 2004 10:39:06 +0200 (CEST) X-X-Sender: numenor@dunedain.cs.tu-berlin.de Original-To: ntg-context@ntg.nl In-Reply-To: <40DFD0D9.4030801@wxs.nl> 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:15600 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15600 Hello, > >>I suggested to the author of the very feature rich LaTeX-Listings package, > >>Carsten Heinz, to port this package to ConTeXt, and it seems, that he is > >>interested. But before doing it, there are some questions: > >> > >>* What do Hans and other people thing about that? > >> > what is listings.sty providing? listings.sty is one of the very few packages from LaTeX, which I am still missing in ConTeXt. I yet never extensively used the listings functionality provided by ConTeXt, but from what I remember from reading the documentation, the liststings.sty is much more flexible. It has an easy interface to define new languages (like Opal, a functional programming language used in courses at my university), allows flexible line numbering (all, every n lines), it allows customization of all fonts (line numbers, keywords, comments, ...), indenting, ... Most importantly for me: It allows easy escaping to TeX. One option is to interpret all comments as (La)TeX code. This was very useful for typesetting correctness proofs of programs using the Hoare Calculus, because it makes such listings much more readable. Then there are other niceties already provided by ConTeXt, like frames, floats, etc. Oh, one other nice thing is, that it allows to use proportional fonts (is that the right translation? I mean non-fixed width fonts), and still can keep indentations correctly, e.g. with assignments like alongvariable = 1; short = 2; I think the algorithm is described a little in the documentation. As far as I remember, it assumes a (configurable) average character width of proportional fonts and typesets every word in a box of the width corresponding to the number of characters included in the word. These were at least the features most important to me ... -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science hfsch@cs.tu-berlin.de http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525 Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany