As from 2010, TexLive has been converting .eps files directly to pdf file if the compilation is done with PDFLaTeX. Thus a file named
coilsans.eps
will be automatically be converted to a file named
coilsans-eps-converted-to.pdf
However I find that the conversion is done if the .eps file is located in the root directory as the main .tex file. If the .eps files happen to be located in another folder, then PdfLaTeX complains e.g.
! Package pdftex.def Error: File `../test/classi-eps-converted-to.pdf' not found.
See the pdftex.def package documentation for explanation.
Type H <return> for immediate help.
...
l.130 ...ludegraphics[scale=1]{../test/classi.eps}
}
?
Process has been terminated ...
How to instruct PDFLaTeX to search in the right directories?
pdflatex -shell-escape myfile.tex. I was able to reproduce your error if I included../test/XX.eps, but had no problems with inclusion oftest/XX.epsunderpdflatex. The-shell-escapeoption solved it in both cases. The problem deals with "restricted mode," which led me to this thread. I found that I had theshell_escape = psetting in mytexmf.cnffile. – Werner Dec 28 '11 at 08:00shell-escapeis necessary only ifepsfiles are in subdirectories? – Ross Sep 04 '18 at 03:00shell-escapeis the solution to OP's problem, which is all about figure placement in subdirectories. I thoughtshell-escapehad to do with converting eps to pdf in general. – Ross Sep 04 '18 at 15:23shell-escapeallows access to the command shell for running external programs. See What does--shell-escapedo? – Werner Sep 04 '18 at 15:26