Literate programming with TB

From: David J Garbutt <d.garbutt_at_intergga.ch>
Date: Sun, 18 Mar 2007 23:53:32 +0100

Hi,

Has anyone used TB for literate programming?

I have a programming project that will be part time and I suspect a literate
programming approach would help me to keep up as well. I would also like to
include results and screenshots/graphics and TB would be ideal for this.
I was thinking it would be relatively easy now with the scripting facilities
available.

But I think there is a difficulty I can't see a way around. That is, that to
weave (create document version) and tangle (create and poss. execute the
embedded code) would requires two ways to export the same set of notes (and
of course different file export names and post processing). I can't think of
an easy way to set this up.

Can export templates be chosen dependent on some key variable?
Can an alias use a different export template from its original?
Can I trigger a re-export from a batch script, or perhaps a make file?

Can anyone think of ways around these issues?
( I have found the xml-lit project which uses XSL-T style sheets to turn
docbook into the two components, but I suspect a TB document is easier to
edit and restructure. EG With TB I can easily distinguish bits that are done
and tested from bits I am drafting and do not work yet).

Thanks in advance,

Dave

-- 
Dave Garbutt
Ingelsteinweg 4d
CH 4143 Dornach
=djg
http://public.xdi.org/=djg
+41 79 326 8970  (Home: 061 692 6349)
http://www.mybasel.ch/verkehr_regioplan_karte.cfm?ID=Strassen,14139&ParaZoom
&Zoom=3000
  My pacifism is not based on any intellectual theory but on a deep
antipathy to every form of cruelty and hatred.
Albert Einstein (1879-1955)
 German-born US physicist. Said on the outbreak of World War I. Attrib.,
1914 
Received on Sun Mar 18 2007 - 18:53:37 EDT

This archive was generated by hypermail 2.2.0 : Thu Sep 20 2007 - 17:05:36 EDT