Is there anything (command/script/function) that can convert a Octave expression to LaTeX. What I am asking for is something like this:
I type
a = eye(3,3); %Identity Matrix
and then do something like textify_me(a) which produces
\begin{array}{ccc}
1 & 0 & 0 \\ blah blah blah
\end{array}
AND/OR
syms x
int(sym('x^2'))
produces
\frac{x^3}{3}
I am not asking for "sweaving" of codes, exporting figures or anything similar. I am simply asking for conversion of variables and symbolic expressions directly to LaTeX format.
MATLAB has a function latex which does this. But it is closed source. Is there something Open Source or should I attempt to try and accumulate people to write it?
:(If I may suggest one application I like, it's Maxima. And it has a LaTeX output, e.g.tex(factor(x^2+2*x+1));gives you$$\left(x+1\right)^2$$.:)– Paulo Cereda Feb 07 '12 at 18:45