axiom-developer
[Top][All Lists]
Advanced

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

RE: [Axiom-developer] Re: literate programming pamphlet files for MathAc


From: Bill Page
Subject: RE: [Axiom-developer] Re: literate programming pamphlet files for MathAction
Date: Fri, 1 Oct 2004 13:26:24 -0400

On Friday, October 01, 2004 12:19 PM I wrote:
> ... 
> Perhaps there is a way to have only one wiki page say
> called just 'dhmatrix' that renders by default via notangle
> AXIOMsys and LatexWiki but then an new method called
> maybe 'weave' that would be called like this:
> 
>   dhmatrix/weave
> 
> which would access the noweave rendering.
> 

Ok, I think I understand how to do this. I would turn it
around. 'dhmatrix' would be the only ZWiki page object
and it should have the default rendering of

 LatexWiki+HTML+(Axiom|Reduce ...)+weave

So when you Edit the wiki page 'dhmatrix' you see
pamphlet source code. When you click Save, it is
automatically rendered via the process

  noweave->(Axiom ..)->LatexWiki

Then there will be a *method* called 'tangle' which
could be applied for any LatexWiki page. A url like
this:

  http://.../zope/mathaction/dhmatrix/tangle/axiom

would have the effect of calling notangle to extract and
expand the default chunk <<*>>= from the 'dhmatrix' source
and call axiom via a /begin{axiom} ... /end{axiom} wrapper
and the render the result via LatexWiki. The rendered
result would be saved with the 'dhmatrix' object so that
this is only done once after the source object is edited,
(i.e. there would be two page renderings). In fact this
could be easily extended to

  http://.../zope/mathaction/dhmatrix/tangle/axiom/root

to allow starting the extraction and expansion with
the chunk named <<root>>= And so then there might be
even more than two renderings.

Note: The Axiom compiler output from .../tangle/axiom
would include category, domain and package hyperlink
references to wiki pages based on the Axiom abbreviations
of the Axiom modules on which it depends. If we arrange
the naming of pamphlet wiki pages properly, this would
mean that these cross-references would link directly by
default to the associated Axiom documentation.

What do you'all think?

Regards,
Bill Page.





reply via email to

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