LaTeX to EPS

I’m a bit furious. I spent a lot of time on getting EPS from LaTeX. Portability of PostScript and PDF is a great myth. This idea works only in theory. But in practice, one has to struggle with buggy software.

Finally, I’ve found a working sequence of conversion commands.


cp latex/312nn081.tex tmp/312nn081.tex

cd tmp; latex 312nn081.tex

dvips -E -o tmp/312nn081.eps tmp/312nn081.dvi

pstoedit -f ps -dt tmp/312nn081.eps tmp/312nn081.ps

ps2epsi tmp/312nn081.ps tmp/312nn081_2.eps

../pictures_converter/bin/epstosmth --gsdev=tifflzw \
       tmp/312nn081.eps --outfile=tmp/312nn081.tif

epstool --add-user-preview tmp/312nn081.tif tmp/312nn081_2.eps \
       eps/312nn081.eps

I already wrote about “epstosmth”: http://uucode.com/blog/2005/09/29/eps-to-something/

The main feature of EPS files produced this way:

Both Adobe Illustrator and Adobe FrameMaker open the EPS files without complaints.

3 Responses to “LaTeX to EPS”

  1. Sam Says:

    Thank you so much for this!

  2. Hariraj Says:

    Hi,

    While running the epstool command, i am getting the following error, please let me know what i was wrong.

    debserver:~/Desktop/bmctest# epstool –add-user-preview sample5.tif sample5_2.eps sample5_1.eps

    DSC Error

    %%Pages: doesn’t match number of %%Page:

    ‘OK’ will adjust the page count to match the number of %%Page:
    comments found
    ‘Cancel’ will set the page count from %%Pages:

    EPS had unacceptable warnings or errors.
    Failed

    Thanks in Advance,
    Hari Raj. M

  3. olpa Says:

    Looks like a bad EPS file. I have no idea how to identify or fix the error.

Leave a Reply