11

How to save output of LaTeX file as .eps file rather than .pdf? I want to put a figure in LateX file and enter some text in it. Then I want to save output as .eps format rather than in form of .pdf. Any suggestions in this regard?

zenith
  • 329

2 Answers2

12

You can use latex rather than pdflatex then

dvips -E ...

will try to generate an EPS file from the resulting dvi.

Alternatively use pdflatex then there are several tools available to convert pdf to EPS (almost all wrappers around ghostscript) imagemagic convert for example.

David Carlisle
  • 757,742
  • 3
    You might note that by default the file extension of the output file is still .ps. Wouldn't this be better? dvips -E -o file.eps file.dvi – musarithmia Jun 30 '16 at 16:55
  • I was under the impression that ImageMagick and GraphicsMagick produce raster from PDF, so that even an EPS would just be a wrapper around raster. True or false? Also, beware: On Windows, the ImageMagick command is now magick convert because plain convert' interferes with a native Windows command. That's why I use GraphicsMagick (command isgm convert` on Windows and Linux). –  Dec 12 '17 at 02:33
6

You can also generate the pdf file first, then convert it to eps file in command line

pdftops -eps filename.pdf

If you get

-bash: pdftops: command not found

install poppler with

brew update
brew install poppler
zyy
  • 2,146