On Wed, Oct 17, 2001 at 04:19:29PM +0200, Davide Cavallari wrote: > > > I have used this method and till today it worked. Now I have a figure > > > composed by both a .tex part and a .ps one. These parts are generated by > > > gnuplot and the .tex part calls the .ps one with: > > > > > > \special{psfile=figure.ps llx=0 lly=0 urx=720 ury=504 rwi=7200} > > > > Why do you generate two files ? > > When I tried using the pslatex output of gnuplot, I got only one .tex file > > which embed the Postscript file into it. > > There is no problem with such a file. > > I have tried with the standard 'pslatex' terminal, but with some huge > graphs latex goes out of memory. I don't know the reason, but using the > 'auxfile' option (getting so the PS code in a separate file) fixes this > problem.
So you need to edit the .tex file, replacing the \special line by either: 1) \special{psfile=<full path>/figure.ps llx=0 lly=0 urx=720 ury=504 rwi=7200} where <full path> is the full path to the ps file: /home/myusername/... 2) Only if use_tempdir = false: \special{psfile=<relative path>/figure.ps ...} where relative path is the path from the main lyx file to the directory of the ps file 3) This is probably the best solution (if it works): \includegraphics{figure.ps} Of course, if you need to generate many graphs from guplot, you should write a script that fix the output of gnuplot.