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.)

  • 1
    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.

| improve this answer | |

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.