Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 ;) –  tohecz Feb 20 '13 at 16:48

1 Answer 1

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.