[Top][All Lists]

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

[Axiom-developer] Re: Axiom wiki

From: Bob McElrath
Subject: [Axiom-developer] Re: Axiom wiki
Date: Fri, 9 Jul 2004 16:50:29 -0700
User-agent: Mutt/

Latex has a command \write18{SHELL COMMAND} which will directly run
shell commands.  This is disabled by default and must be enabled by
'latex -shell-escape' I don't know about successive inputs to axiom.  I
take it pamphlet files are pre-processed by some tool?

Clever use of \write18 combined with some named pipes or temporary files
to corral output could enable latex itself to run axiom and include its
output in the resultant ps.  This could be done in a style file using
the latex-like syntax you suggest below.  If we were super-clever, we
would make the syntax the same for the web stuff...


Obviously, this can be a HUGE security hole, and I would not want people
to be able to edit documents on-line that can run arbitrary commands on
the server.  However it suggests a uniform document format...

root address@hidden wrote:
> *,
> Currently, as you know, code is delimited in axiom's pamphlet files
> using a special "chunk" syntax:
> <<chunk name>>=                             <<== define code here
>      code
> @
> 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]
>     code
> \end{chunk}
> \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.
Bob McElrath [Univ. of California at Davis, Department of Physics]
    It is unpatriotic to question the Kleptocracy.

Attachment: signature.asc
Description: Digital signature

reply via email to

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