I have the following piece of Latex code. I receive this warning:

Package pstool Warning: No file "epsfigure.tex" or "epsfigure-psfrag.tex" can be found that may contain macros for "epsfigure.eps" on input line 24.

while I have put the .eps figure in the directory. What I should do to get rid of this warning that I see in all my latex files?

Thanks a lot

\pgfplotsset{compat = newest}
\epstopdfsetup{update} % only regenerate pdf files when eps file is newer

  Some text... Suddenly a figure!


  \caption{} \label{fig:final_3}

  • Into a directory or a same folder?
    – Sebastiano
    Jan 7, 2019 at 11:55
  • In the same folder
    – Yousef Vh
    Jan 7, 2019 at 15:33
  • But the files are .eps or .ps?
    – Sebastiano
    Jan 9, 2019 at 0:00
  • they are .eps figures.
    – Yousef Vh
    Jan 10, 2019 at 18:05

1 Answer 1


There are afaik know three options

  • change from pdflatex to (dvi)latex
  • add an empty file imx/testfig.tex
  • add an empty file imx/testfig-psfrag.tex

I assume it is a feature not a bug, you could theoretically use macros in one of imx/testfig.tex or imx/testfig-psfrag.tex, which might be necesarry, since everything you define in the document will not be accessible in the graphics (e.g. if you define a command in the document you can not use this command in psfragfic in pdflatex (differently to (dvi)latex)).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .