From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26347 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: pretty typesetting for matlab files Date: Wed, 15 Mar 2006 16:14:18 -0500 (EST) Message-ID: References: <4417DC4E.6000801@elvenkind.com> 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 1142457282 2658 80.91.229.2 (15 Mar 2006 21:14:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Mar 2006 21:14:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 15 22:14:40 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 1FJdKE-0002ph-K6 for gctc-ntg-context-518@m.gmane.org; Wed, 15 Mar 2006 22:14:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF1A812793; Wed, 15 Mar 2006 22:14:32 +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 02806-02; Wed, 15 Mar 2006 22:14:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17D7A12780; Wed, 15 Mar 2006 22:14:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66C2612780 for ; Wed, 15 Mar 2006 22:14:27 +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 02521-07-6 for ; Wed, 15 Mar 2006 22:14:26 +0100 (CET) Original-Received: from pushingtin.mr.itd.umich.edu (pushingtin.mr.itd.umich.edu [141.211.14.78]) by ronja.ntg.nl (Postfix) with SMTP id CF6501276B for ; Wed, 15 Mar 2006 22:14:25 +0100 (CET) Original-Received: from eecs4327u10.engin.umich.edu (eecs4327u10.engin.umich.edu [141.213.51.138]) by pushingtin.mr.itd.umich.edu (smtp) with ESMTP id k2FLEISo004151 for ; Wed, 15 Mar 2006 16:14:23 -0500 X-X-Sender: adityam@eecs4327u10.engin.umich.edu Original-To: mailing list for ConTeXt users In-Reply-To: <4417DC4E.6000801@elvenkind.com> 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:26347 Archived-At: On Wed, 15 Mar 2006, Taco Hoekwater wrote: > > > 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. The syntax is quite similar to MP. I will see if I can make the corresponding changes for things to work. > 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. Is this documented somewhere? Even the source files (verb-*.tex) did not have too many hints on what is going on. Should I also look into some other files? Thanks, Aditya