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.
May 16th, 2009 at 2:37 am
Thank you so much for this!
July 3rd, 2010 at 4:49 pm
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
July 5th, 2010 at 12:22 pm
Looks like a bad EPS file. I have no idea how to identify or fix the error.