I have following code simply testing I can insert an image. I got the error message basically says:

1. I have an image beer-lambert.eps in the folder of C:/Users/tsui/writing/chapter_1/figures/
2. There does not seem to be any space in the path

I don't understand, because I have another LaTeX project, that simply does not have such a problem. So I assume my setup on my MikTex (Windows 10) is correct?

Following is my code.

\documentclass[12pt]{report}

\usepackage{graphicx}
\usepackage{epstopdf}

\begin{document}
\begin{figure}
\centering
\includegraphics[scale=0.4]{C:/Users/tsui/writing/chapter_1/figures/beer-lambert}
\caption{caption}
\label{fig_beer_lambert}
\end{figure}
\end{document}

Update:

I change the code, as Ruben suggested, to simplify the problem. Now the .eps image is in the same folder as the .tex file, but it still gives the same

error:

\documentclass[journal]{IEEEtran}

\usepackage{graphicx}
\usepackage{epstopdf}

\begin{document}

\includegraphics[scale=0.4]{sinogram.eps}

\end{document}
• Try \includegraphics[scale=0.4]{beer-lambert.eps} with beer-lampert.eps beeing in the same folder as you .tex file – Ruben Feb 18 '18 at 22:33
• @Ruben: It gives the same error.... – Nick X Tsui Feb 18 '18 at 22:35
• I can't reproduce your error, it works fine for me with \includegraphics[scale=0.4]{sinogram.eps} and also \includegraphics[scale=0.4]{sinogram}. Does it work with \includegraphics[scale=0.4]{example-image}? – Bobyandbob Jun 19 '18 at 7:21