texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Literate Programming in TeXmacs?


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] Literate Programming in TeXmacs?
Date: Sun, 20 May 2007 18:10:02 +0200
User-agent: Mutt/1.5.9i

On Sun, May 20, 2007 at 05:01:22PM +0200, Ralf Hemmecke wrote:
> >>Thank you, Joris for your encouragement, but I have really no idea how 
> >>to start.
> >
> >Basically, you first have to choose between two approaches:
> >  1) Keep programs in ASCII format and include comments which
> >     can be extracted by TeXmacs.
> >  2) Write source files in TeXmacs and write an extraction tool
> >     for getting the compilable source files.
> >Both approaches have been discussed on the mailing list.
> >Please try to figure out what you prefer first ;^)
> 
> Oh, that was clear for me from the beginning. If I start doing something 
> then TeXmacs should be *the* format. The actual code file I don't want 
> to see anymore. There is "untangle" in LEO, and I think that is exactly 
> what I *don't* want to have. LP means to deal with a document that 
> contains some code. If somebody wants to modify the (generated) 
> codefile, then clearly that is building on the current concept that code 
> comes first and documentation is an addition to code.

OK, both ways have their own interest and are fine with me.
If you want to go for (2), then you should start with
  1) Tags for marking how to extract compilable source files.
  2) Scheme routines to extract the compilable source files.
This is more or less what Felix Breuer did, except that he used XSLT
for step 2. This is also possible, but less natural from the TeXmacs
point of view (and therefore requiring additional things to be done).

Are you familiar with
  (1) simple TeXmacs style files
  (2) scheme programming

Best wishes, Joris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]