You need to write the \
as /
because (La)TeX follows the Unix style (which is also used for WWW addresses). Also the spaces in the filename are a problem.
You can load the grffile
package with the space
option to make things easier as mentioned by Herbert in How to include graphics with spaces in their path?. If it wouldn't be for the \
vs./
your question would be a duplicate of it.
Alternatively try to enclose the file base in { }
as explained in \includegraphics: Dots in filename.
% Preamble
\usepackage{graphicx}
\usepackage[space]{grffile}
%...
% Document
\includegraphics{C:/Documents and Settings/Nina/asdd.jpg}
In order to include graphics in your document you should use
\usepackage{graphicx}
in your document preamble (between \documentclass{<doc class>}
and \begin{document}
) which allows you to then use
\includegraphics{<filename>}
Depending on the compiler you are using (latex
, or pdflatex
, or xelatex
) you may be required to only use specific image types (PDF, EPS, PNG, JPG,...). However, there are ways around this. You can also specify option parameters (like image width, height, etc) using
\includegraphics[width=4cm,height=3mm]{filename}
For more information on the standard usage, as well as package options, see the graphicx
package documentation.
Best Answer
It's 2018 now, and this has become very easy.
Simply:
The
mwe
package needs to be installed for this (but it doesn't need to be included in the preamble). If using MiKTex e.g., it will offer to install this package when the document is built.There are other placeholder images available as well.
Example document from another StackExchange answer: