ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: pretty typesetting for matlab files
Date: Wed, 15 Mar 2006 10:20:14 +0100	[thread overview]
Message-ID: <4417DC4E.6000801@elvenkind.com> (raw)
In-Reply-To: <Pine.WNT.4.63.0603150123000.1200@nqvgln>



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

  reply	other threads:[~2006-03-15  9:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15  6:50 Aditya Mahajan
2006-03-15  9:20 ` Taco Hoekwater [this message]
2006-03-15 21:14   ` Aditya Mahajan
2006-03-16  9:50     ` Taco Hoekwater
2006-03-17  5:29       ` Aditya Mahajan
2006-03-17  9:16         ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4417DC4E.6000801@elvenkind.com \
    --to=taco@elvenkind.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).