TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I want to include a .eps image and yet use pdfLaTeX, I can do so using epstopdf (manually called, automated in TL2010+, using the package). However, as far as I know, all these options are incompatible with psfrag.

I would be interested in a utility, let's say psfragify, that would take a LaTeX source code, extract all .eps graphics that use \psfrag directives, and run latex+dvips(+ps2pdf) on them, to obtain corrected graphics that can be used in pdfLaTeX. Of course, this should solve the problem of using the correct fonts, too.

(If no such utility exists, I'm probably going to make one, but I would like to know whether the work has not been done before.)

share|improve this question
Have you tried pstool? – Joseph Wright Feb 20 '13 at 16:47
@Joseph not really, I'll look into it, but it looks promising on the first sight ;) – yo' Feb 20 '13 at 16:48

There is a perl script called unpsfrag that does exactly what you need. I used to use it many years ago; I'm not sure how well it will work with newer packages.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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