Here is the final pdf output of my approach. It is in a seperate
email because I violate the 40kb limit of the list if I include it
with the rest (my orignial message bounced). Sorry, Robert, you
probably will get this twice.
On 7/4/07, Ryan Krauss <ryanlists at gmail.com> wrote:
> This may be way more complicated and hackish then what you have in
> mind, but I have written Python scripts that I use extensively to do
> this sort of thing in two ways. Both allow/assume that I am mixing
> Maxima and Latex. So, this might not be ideal for someone who want
> simples ordinary text comments added to their Maxima code (i.e.
> without having to learn Latex).
>
> So, the old way allows me to add a new environment to a Latex document:
>
> \begin{maxima}
> [maxima code here]
> \end{maxima}
>
> My Python script then is a complicated, messy pre-processor for Latex.
> It sorts through the document finds all the \begin{maxima}
> envrionments, puts them into a batch file for Maxima - adding TeX
> output commands for each environment. After Maxima finishes running
> the batch file, it takes all the TeX output files (one for each
> \begin{maxima} environment) and substitutes them back into the Latex
> environment, changing the environment from \begin{maxima} to
> \begin{equation}.
>
> My latest version of this adds an additional input layer, by allowing
> me to add Latex code in comments in a *.wxm file. It then takes the
> .wxm file and turns it into the input file I was discussing above.
> Here is an example snipet:
>
> /* [wxMaxima: input start ] */
> /*
> \section{A Simple Example}
> This file gives a simple example of intermingling \LaTeX{} and Maxima.
>
> Here is one equation:
> */
> eq1:x+y=7;
> /* [wxMaxima: input end ] */
>
> Attached are some example files that may clarify what my code does.
> (The header.tex file is only attached in case some actually wanted to
> run Latex on the latex_output.tex file)
>
> The one thing it doesn't do right now that might be necessary for the
> application you are talking about is echo back the verbatim Maxima
> code. But I don't think that would be too difficult.
>
> I would be glad to share the code if anyone is interested. But it is
> fairly messy and disorganized. It is all in Python and depends on
> Scipy/Numpy and wxPython. You don't have to be a Python programmer to
> use it. There is a gui to select your input files and run the various
> aspects of the process.
>
> FWIW,
>
> Ryan
>
>
> > On 7/3/07, Robert Dodier <robert.dodier at gmail.com> wrote:
> > > Hello,
> > >
> > > Recently I think someone was asking about how to get
> > > Maxima output and ordinary text in the same document.
> > > (Or maybe I'm mistaken. Wouldn't be the first time.)
> > > Anyway I found this web site
> > > http://melusine.eu.org/syracuse/maxima
> > > which has a lot of interesting stuff, including a script
> > > named pmaxima which can process documents which
> > > comprise Maxima commands and ordinary text.
> > > http://melusine.eu.org/syracuse/maxima/scripts/pmaxima
> > >
> > > Maybe this will be useful to someone.
> > >
> > > Robert Dodier
> > > _______________________________________________
> > > Maxima mailing list
> > > Maxima at math.utexas.edu
> > > http://www.math.utexas.edu/mailman/listinfo/maxima
> > >
> >
> >
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdf_output.pdf
Type: application/pdf
Size: 35222 bytes
Desc: not available
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20070704/c8c41bad/attachment-0001.pdf