I'm just beginning with LaTeX, and I'm trying to understand how to include images in my documents. I'm working under TeXnicCenter.
In the book I've bought they say that I should use the command \includegraphics
. I've used the packages calc
and graphicx
, but the message pdftex.def error
appears when I try to open an image and apparently LaTeX can't find my file.
LaTeX writes:
! package pdftex.def Error: File 'The name of the file' not found.
I don't have files under the eps
format, but .jpg or .png. I've tried to use the package epstopdf
, as recommended on this website, but I can't understand where I'm supposed to enter the option -shell-escape
. And as this package is supposed to convert eps
files to pdf
, I don't see how it could help me anyway, as I'm trying to use JPEG and PNG files. So as you can see, little problem here ...
My code is basically this (I hope the problem doesn't come from other packages I would have used and were not compatible, but I don't think so):
\documentclass{report}
\usepackage{calc, graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics{C:/Users/Pictures/Lord of the Rings/Dimholt.jpg}
\end{document}