In some figures I create for my thesis I want to replace the labels and such using the same font and size as in the rest of the thesis. A couple of month ago I already used psfrag and pstool (with pdflatex). But now I cannot get it working. I did not changed any files (using a version control system, so I'm pretty sure).
The following mini example produces the same error as in my thesis:
\documentclass{article}
\usepackage{pstool}
\begin{document}
\begin{figure}
\centering
\psfragfig*{Inverses_Pendel}
\end{figure}
\end{document}
In the same directory are the files Inverses_Pendel.eps
and Inverses_Pendel.tex
.
Inverses_Pendel.tex
contains the following content:
\psfrag{T}[cc][cc]{$Test$}
And here is the error:
Package pstool Warning: Execution failed during process: ps2pdf "-dAutoFilterColorImages=false" "-dAutoFilterGrayImages=false" "-dColo rImageFilter=/FlateEncode" "-dGrayImageFilter=/FlateEncode" "-dPDFSETTINGS=/pre press" "Inverses_Pendel-pstool.ps" "Inverses_Pendel.pdf" This warning occurred on input line 7.
! Missing $ inserted. $ l.7 \end {figure} ? ! Emergency stop. $ l.7 \end {figure} End of file on the terminal!
It's such a generic error, I don't even know where to start searching.
I'm using MikTeX 2.9. I'm passing the -shell-escape
option.
eps
and thetex
somewhere for download so that other can makes tests.