[Top][All Lists]

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

[Axiom-developer] Re: Axiom wiki

From: root
Subject: [Axiom-developer] Re: Axiom wiki
Date: Fri, 9 Jul 2004 19:50:04 -0400


Currently, as you know, code is delimited in axiom's pamphlet files
using a special "chunk" syntax:

<<chunk name>>=                             <<== define code here

and it gets expanded when the "chunk name" gets referenced:

<<chunk name>>                              <<== expand code here

It occurs to me that we could easily make this more "latex-like" thus:

\begin{chunk}[chunk name]

\expand{chunk}[chunk name]

This would be "pseudo-latex" because the only difference between the
current chunk naming method and the latex-like chunk naming method
is syntactic. The pamphlet file would still expand exactly as before.
Only the program that collects and expands chunks (noweb) needs to change.

If we move to the latex syntax then it would be easy to define latex
environment macros which would do something harmless.


reply via email to

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