From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26343 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: pretty typesetting for matlab files Date: Wed, 15 Mar 2006 10:20:14 +0100 Message-ID: <4417DC4E.6000801@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142414436 21588 80.91.229.2 (15 Mar 2006 09:20:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Mar 2006 09:20:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 15 10:20:34 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FJSB6-0007ig-SD for gctc-ntg-context-518@m.gmane.org; Wed, 15 Mar 2006 10:20:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5EBB412784; Wed, 15 Mar 2006 10:20:24 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20967-05; Wed, 15 Mar 2006 10:20:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A03BB1277E; Wed, 15 Mar 2006 10:20:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6DFDA1277E for ; Wed, 15 Mar 2006 10:20:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20853-07 for ; Wed, 15 Mar 2006 10:20:16 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id 56E0D1276C for ; Wed, 15 Mar 2006 10:20:16 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id E9C201B41A for ; Wed, 15 Mar 2006 10:20:15 +0100 (CET) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14225-01 for ; Wed, 15 Mar 2006 10:20:15 +0100 (CET) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 987DD18330 for ; Wed, 15 Mar 2006 10:20:15 +0100 (CET) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26343 Archived-At: Aditya Mahajan wrote: > Hi, > > I was trying to define a pretty printing environment for matlab files. > The basic requirements that I have are > > The syntax is similar to both perl and MP. I had a look at the > verb-*.tex files and tried to write verb-matlab. My attempt is attached. If you have to change any of the actual syntax rules (like for comments etc.), then you have to be brave and create a fully new definition. That may sound like a very daunting task, but it is not as hard as you may think, just something to be done meticulously. The verb-xxxx definitions are rather straightforward state engines that use character codes as command tokens. Cheers, Taco