The psfrag package has been around for more than a decade* and is easy to use:
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{psfrag}% http://ctan.org/pkg/psfrag
...
\psfrag{<tag>}{<LaTeX text>}% <tag> -> <LaTeX text>
\includegraphics{image}
The drawback is the required latex->dvips->ps2pdf route of compilation for output to be produced in PDF format. Why is there no such easy/straight-forward counterpart for this under pdflatex? That is, by replacing all psfrag references to pdffrag in the above code extract.
* psfrag version 3.04 on CTAN is dated 11 April 1998.
pdftexI guess. – Martin Scharrer Sep 04 '11 at 17:48The pdfrack.sh script uses a lot of other scripts and software. cut, dvips, epstopdf, grep, head, latex, ps2ps, ps2epsi, sort, tail, and, first of all, a bourne shell... Sorry for Win* users. They should install solutions like Cygwin, or try a Linux distribution.– Werner Sep 04 '11 at 17:51pdftex. It's simply much more complicated then in the case of PS. – Martin Scharrer Sep 04 '11 at 18:25pdftex, or can it? And calling some external tools can also be done using shell escapes. – Martin Scharrer Sep 04 '11 at 21:45epdflibrary in the latest versions of LuaTeX you might be able to manipulate the included pdf to create similar results as psfrag. – Martin Schröder Sep 05 '11 at 06:41pdfrackhas a new home on CTAN. – Werner Jul 10 '15 at 16:22