5

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?

6

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.

  • 1
    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 is gm convert` on Windows and Linux). – user139954 Dec 12 '17 at 2:33
2

Instead of letting LaTeX do it for you, I recommend generating a pdf file first, then convert it to eps file with cmd

pdftops -eps filename.pdf

If your cmd tells you

-bash: pdftops: command not found

You should then do the following

$ brew update
$ brew install poppler

As for generating the pdf file, please refer to this answer.

  • Isn't the brew specific to Mac OSX? – user139954 Dec 12 '17 at 2:56
  • pdftops rasterizes the pdf – Manuel Pena Oct 31 '18 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.