axiom-mail
[Top][All Lists]
Advanced

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

Re: [Axiom-mail] \begin{axiom} latex on windows


From: Bob McElrath
Subject: Re: [Axiom-mail] \begin{axiom} latex on windows
Date: Thu, 11 Aug 2005 17:23:37 -0700
User-agent: Mutt/1.5.6+20040523i

Ryan Krauss address@hidden wrote:
> I found this example on the axiom-developer mailing list from about a 
> year ago:
> 
>  \begin{axiom-input}
>  R1:=matrix([[cos a, sin a, 0],[-sin a, cos a, 0],[0, 0, 1]])
>  \end{axiom-input}
>  Next we define a rotation around the Y axis by a rotation angle of b 
>  \begin{axiom-input}
>  R2:=matrix([[cos b, 0, -sin b],[0, 1, 0],[sin b, 0, cos b]])
>  \end{axiom-input}
>  The we compose them (order is important) to form the single
>  rotation equivalent to first rotating around X, then around
>  the new, displaced Y. 
>  \begin{axiom-input}
>  R:=R1*R2
>  \end{axiom-input}
> 
> I would very much like to be able to write LaTeX documents like this on 
> Windows XP.  Has anyone done this?

The MathAction wiki
(http://page.axiom-developer.org/zope/mathaction/FrontPage)
allows documents like this.  It runs on the zope server, and some code
pasted together by myself and Bill Page calls axiom on the server to
render the document.

Additionally the "pamphlet" format used natively by axiom supports
running axiom commands, using a similar syntax.

Finally, we are currently working on a more "worksheet" style interface,
and the first iteration I did was a modification of tiddlywiki
(http://www.tiddlywiki.com) to support axiom and jsMath.  (it runs axiom
without a server using some javascript tricks in firefox)  However this
will definitely not work on windows.

> If not, I am a bit of a Python programmer and I was thinking one way to 
> make it work would be to have Python parse the tex file and take 
> whatever is between the \begin{axiom} and \end{axiom} statements and 
> create an input file for axiom with the output set by the file to go to 
> numbered .tex files.  Python would then replace the \begin{axiom}... 
> with \begin{equation} \input{....###} (i.e. the output files from axiom).

The code is all python but does not run standalone, currently.  Trivial
modifications could be made to make it run standalone.

> But in order to make something like this work, Python needs to be able 
> to call axiom and tell it to run the script (and possibly close axiom 
> afterward).  Is there a way to do this on Windows?  Can it be done with 
> a dos command?

I can't comment on windows...

If you're interested in working on this, please join axiom-developer!
;)

--
Cheers,
Bob McElrath [Univ. of California at Davis, Department of Physics]

    "One of the best ways to get yourself a reputation as a dangerous citizen
    these days is to go about repeating the very phrases which our founding
    fathers used in the great struggle for independence." --Charles A. Beard

Attachment: signature.asc
Description: Digital signature


reply via email to

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