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.
pdftex
I guess. – Martin Scharrer♦ Sep 4 '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 4 '11 at 17:51