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
rted-to.pdf' not found.
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}
shell-escape
pdflatex will not convert the EPS (not that TeXLive can convert EPS files without the need of theepstopdf
package) because the target folder is an absolute path. (2) Running it withshell-escape
when it works fine and create the converted PDF in the absolute path.--shell-escape
thenlatexmk
also works for me. Where exactly is the.tex
file places in relation toD:/git/report/images
?