Following up on my own post of earlier today:

Amir> It shouldn't be too hard to break nwconvert in two pieces, and
Amir> have 'reLyX -n' (for example) automatically call the pre- &
Amir> post-processing subroutines.

I've fixed noweb2lyx to provide the -pre and -post argument flags. It
behaves like I stated earlier:

> That seems very logical. Hmmm... I think I can change it to do this:
> ``noweb2lyx -pre in-file out-file'' would only call the
> preprocessing part (up to calling reLyX).

> ``noweb2lyx -post in-file out-file'' would only call the
> post-processing part (after calling reLyX).

> That way, the only thing you might have to merge into reLyX is the
> code that gleans the article class of the noweb file (so it can
> generate a literate-$class document).

> So, you could just insert ``noweb2lyx -pre'' and ``noweb2lyx -post''
> in the right places in reLyX (and noweb2lyx could still be a
> standalone script).

This new version also contains a small section (like Literate.lyx) for
being able to build itself from within LyX.

Here is the two files:

noweb2lyx perl script

noweb2lyx lyx file



                        ---Kayvan
-- 
Kayvan Aghaiepour Sylvan   | Proud husband of       | Father to
Sylvan Associates, Inc.    | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://www.isp.net/~kayvan |                        | Robin Gregory (2/28/92)

Reply via email to