Firstly hello,
thanks everybody who offered help.
It seems that the most straight forward approach is to do the following
:
a] run octave and make a plot.
b] save the plot as a figure
it is important to set the fig term like so :
gset term fig textspecial
c] run fig2ps on the output file :
fig2ps homepage : http://fig2ps.sourceforge.net/
fig2ps fileName.fig
should spit out fileName.ps
d] view the output ps ... it should have latex style formatting in it.
the resulting ps image does not suffer from aliasing and scales nicely.
I have tried several conversion scripts and the one specified above
works very nicely, including complete cropping of the output ps file.
thanks
Matt
On Mon, Jan 24, 2005 at 09:16:44AM -0800, Jonathan Stickel wrote:
Simple subscript and superscript commands ("_" or "^") do work
automatically with the eps gnuplot terminal. For more advanced latex, I
use the xfig terminal, and then use "figfrag":
http://www.ctan.org/tex-archive/graphics/figfrag/?action=/tex-archive/graphics/
figfrag converts xfig files to eps, processing all the latex commands.
I had to patch figfrag to use epstool for bounding box correction, so
let me know if you want the patch. Also, I've found I have to open up
the xfig file and resave it; for some reason figfrag doesn't like the
xfig file output by gnuplot. Oh, and there is also the program "fig2ps"
that does nearly the same thing; I just happen to like figfrag better.
HTH,
Jonathan
Matt Flax wrote:
Hello,
I would like some math formatting inserted into my wordprocessor Figure
x/y labels.
I would like to put some formatting in my xlabels ... something like :
gset xlabel '$\\gamma h_2$'
Which when viewed through the word processor should be printed as the
Greek letter Gamma and an 'h' with a '2' as subscript.
Does anyone out there have PERSONAL examples of how to put latex into
the labels of plots .... and then import to latex or preferably LyX ?
Normally LyX allows you to export it as a simple .fig file which gets
converted on the fly , however the labels don't seem to enter the tex or
lyx math modes ...
thanks
Matt
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------