Discussion:
LaTeX representation of a symbolic expression
(too old to reply)
Proginoskes
2006-11-05 07:35:58 UTC
Permalink
[Cross-posting to comp.soft-sys.octave, where someone might know the
answer for sure]
There is "latex" function in matlab, I can't find is analog in Octave.
I'll be very grateful if you help me to find way to convert symbolic
variable to it's latex representation.
Octave doesn't look like it can manipulate expressions (like Maple or
Mathematica can). So why don't you use printf, like:

printf("2^{%d}\n", a);

to output 2^a.

You _did_ read the manual, right?
http://www.gnu.org/software/octave/doc/interpreter/

--- Christopher Heckman
Randy Yates
2006-12-11 04:13:37 UTC
Permalink
Post by Proginoskes
[Cross-posting to comp.soft-sys.octave, where someone might know the
answer for sure]
There is "latex" function in matlab, I can't find is analog in Octave.
I'll be very grateful if you help me to find way to convert symbolic
variable to it's latex representation.
Octave doesn't look like it can manipulate expressions (like Maple or
Mathematica can).
I think you misinterpret GAS. He is referring to the typesetting of
the text in titles and whatnot. In Matlab, you can, e.g., write

title('\int_a^b x^2 dx')

to get a nicely-typeset version of the integral sign and integrand.

I too have noticed this is not available in octave. It would be nice
to have.
--
% Randy Yates % "Ticket to the moon, flight leaves here today
%% Fuquay-Varina, NC % from Satellite 2"
%%% 919-577-9882 % 'Ticket To The Moon'
%%%% <***@ieee.org> % *Time*, Electric Light Orchestra
http://home.earthlink.net/~yatescr
Loading...