# epstopdf does not create any output when run by latexmk

EDIT: I was pointed to a solution by someone else.

I use Sublime Text 2 as my editor, and use the LatexTools package to compile the file.

In my case, I had forgotten to add ;%PATH% to my texpath variable in the platform specific build settings:

"texpath" : "C:\\texlive\\2015\\bin\\win32;%PATH%",


After this I could compile my project without any issues.

So I'm trying to include some .eps images in my LaTeX file. I have included the "epstopdf" package, and judging by the log file it appears to find my EPS files no problem.

Except latexmk complains that it can't find the converted PDF files once they've been run through epstopdf.

Here's a section of my log file regarding the inclusion of such an EPS file:

LaTeX Font Info:    External font cmex10' loaded for size
(Font)              <7> on input line 601.
LaTeX Font Info:    External font cmex10' loaded for size
(Font)              <5> on input line 601.
Package epstopdf Info: Source file: <D:/git/report/images/setup_3d.eps>
(epstopdf)                    date: 2016-04-18 09:42:16
(epstopdf)                    size: 45115 bytes
(epstopdf)             Output file: <D:/git/report/images/setup_3d-eps-co
nverted-to.pdf>
(epstopdf)             Command: <epstopdf --outfile=D:/git/report/images/
setup_3d-eps-converted-to.pdf D:/git/report/images/setup_3d.eps>
(epstopdf)             \includegraphics on input line 616.
runsystem(epstopdf --outfile=D:/git/report/images/setup_3d-eps-converted-
to.pdf D:/git/report/images/setup_3d.eps)...executed.

Package epstopdf Info: Result file: <D:/git/report/images/setup_3d-eps-co
nverted-to.pdf>.

! Package pdftex.def Error: File D:/git/report/images/setup_3d-eps-conve

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
...

l.616 \includegraphics[width=2.5in]{setup_3d.eps}


And the corresponding LaTeX snippet:

\begin{figure}[!t]
\centering
\includegraphics[width=2.5in]{setup_3d.eps}
\caption{A schematic drawing.}
\label{fig:overview_3d}
\end{figure}


I can run the exact conversion command listed in the log manually, and it produces the correct output. However, when it's run by latexmk, the log claims all is well and dandy, yet no PDF files are produced.

I have looked through a number of answers to the "xxx-converted-to-pdf" question, and I have tried the following solutions:

• Enable --shell-escape
• Use the \epstopdfsetup{outdir=some/path/} to manually set an output directory. Tried both absolute and relative paths.
• Use the \graphicspath{} command to set an input directory. Also tried absolute and relative paths here.
• Delete LaTeX cache/generated files in the directory of my main document file.

I don't think the problem is that epstopdf can't locate the EPS files, as the absolute paths in the log file seem fine.

What else could be the issue here?

I'm using TexLive version 2015 on Windows 8.1.

EDIT: A full minimal example:

\documentclass[journal]{IEEEtran}

\usepackage{blindtext}
\usepackage{graphicx}
\usepackage{cite}
\usepackage{epstopdf}
\graphicspath{{D:/git/report/images/}}

\begin{document}

\begin{figure}[!t]
\centering
\includegraphics[width=2.5in]{setup_3d.eps}
\caption{A schematic drawing.}
\label{fig:overview_3d}
\end{figure}

\end{document}

• Full minimal example please. Note that most likely it is not latexmk that is doing the epstopdf, but rather the latex call it self. Also it is not latexmk that is complaining it cannot find the PDF, it is LaTeX ifself – daleif Apr 18 '16 at 9:27
• Hmm, when I change your example to work on my system with a plobal path for graphics path (I'm on linux), I observe the following: (1) With pdflatex and no shell-escape pdflatex will not convert the EPS (not that TeXLive can convert EPS files without the need of the epstopdf package) because the target folder is an absolute path. (2) Running it with shell-escape when it works fine and create the converted PDF in the absolute path. – daleif Apr 18 '16 at 9:43
• given --shell-escape then latexmk also works for me. Where exactly is the .tex file places in relation to D:/git/report/images`? – daleif Apr 18 '16 at 9:44
• @daleif: The file is located at D:/git/report/main.tex. So basically the parent directory of the images directory. – Bartvbl Apr 18 '16 at 9:47
• @daleif: The strange this is that the command appears to run fine. The log file shows "...executed." instead of "...blocked." after the runsystem() entry (see above). So by all accounts the PDF output should be produced as far as I can tell. – Bartvbl Apr 18 '16 at 9:54