I think this would be very valuable.
I have written a regexp based python script to convert fractions and
matrices from TeX to LaTeX if anyone is interested. It is actually
part of a package that I wrote that allows you to embedded Maxima in a
LaTeX document so that you can explain your derivation as you go
along. Python looks for environments like
\begin{maxima}
...
\end{maxima}
and takes what is inside them and builds an input script to Maxima.
It then calls Maxima and maxima saves each equation to a seperate .tex
file. Python then uses each of these .tex files to replace the
\begin{maxima} environments with \begin{equation} environments. I
really like combining LaTeX with any CAS in this way.
But all of this would be cleaner if I wasn't doing the TeX->LaTeX
after the fact using regexp.
Ryan
On 12/11/05, Barton Willis wrote:
>
> -----Paul RIVIER wrote: -----
>
> > I take this opportunity to ask you if there is a
> > work in progress to include a latex export as well.
>
> I don't know of anybody that is working on this.
> To generate LaTeX output for fractions and matrices,
> load 'mactex-utilities':
>
> (%i1) load("mactex-utilities")$
> (%i2) tex(a/b);
> $$\frac{a}{b}$$
> (%o2) false
>
> (%i3) tex(matrix([1,2],[3,4]));
> $$\begin{pmatrix}1 & 2 \\ 3 & 4 \\ \end{pmatrix}$$
> (%o3) false
>
> Barton
>
> _______________________________________________
> Maxima mailing list
> Maxima@math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>