I have inserted an image in my LaTeX document and the image always displays with the file path of the image directly above it. How can I prevent this file path from displaying?
I am inserting the image like this:
\begin{figure}
\centering
\includegraphics{C:/Users/Name/Pictures/image1.png}
\caption{a caption}
\label{fig:reference}
\end{figure}
Here is a working example of document that produces this behaviour:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics{C:/Users/Name/Pictures/image 1.png}
\end{figure}
\end{document}
The image was inserted using the TeXnicCenter Insert>Picture function.
When I generate the pdf document, directly above any image (I have inserted multiple images using this technique) the file path displays above the image, in the case above it would show: "file\path\of\image", how can I prevent this from displaying?
draft
option, either for thegraphicx
package or the class. – Joseph Wright♦ Sep 25 '11 at 7:50file\path\of\image
meant to be a normal path or really three macros? You need to use/
not `` even under MS Windows, AFAIK. – Martin Scharrer♦ Sep 25 '11 at 7:54pdftex
option for thegraphicx
package. Unless you are using dvipdfmx,graphicx
will pick up automatically on the correct driver. – Joseph Wright♦ Sep 25 '11 at 8:00