Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

running TeXnicCenter LaTex >> PDF produces the following error:

LaTex warning: File 'Energy_Arc.png' not found.

Output shows empty box where image should be (with same error as above written inside it).

I have placed this png in C:\Program Files\TeXnicCenter (I am assuming this is the build location).

As per http://stackoverflow.com/questions/3134187/how-to-add-a-jpg-image-in-latex , the code I'm using is

\usepackage{graphicx}
\begin{figure}[ht!]
\centering
\includegraphics[width=90mm]{Capture1.png}
\caption{A simple caption}
\label{overflow}
\end{figure}

Output crashes when compiling Latex >> DVI (but only when attempting to actually view the image in output).

I have also tried the above with .jpg (no difference).

share|improve this question

migrated from stackoverflow.com Jul 30 '13 at 22:26

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 6 down vote accepted

I have placed this png in C:\Program Files\TeXnicCenter (I am assuming this is the build location).

No. The file should be placed into the folder of your .tex document.

More generally, no user files belong in C:\Program Files. As the name says, this folder is for applications only. In a properly configured Windows this folder shouldn’t even be writeable for normal users without hassle.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.