Tell me more ×
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.

Here's the preamble:

\documentclass{report}
\usepackage{fullpage}
\usepackage{amssymb}
\usepackage[fleqn]{amsmath}
\usepackage{graphicx}
\usepackage{color}

... And here's the call to \includegraphics:

\includegraphics[scale=0.5]{n6d.png}

The error on the log:

! Package pdftex.def Error: File `n6d.png' not found.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.39 ...aph & \includegraphics[scale=0.5]{n6d.png}
                                               & \includegraphics[scale=...

Typing "H" just puts it into draft mode.

The file 'n6d.png' is located in the same folder as the .tex file. I've tried putting just 'n6d' as the filename, but still have the same problem. Here's the command I'm calling to compile the PDF:

"C:\texlive\2012\bin\win32\pdflatex.exe" -output-directory "D:\Documents\School\Math3\Worksheets\3" "D:\Documents\School\Math3\Worksheets\3\wksht3_sols.tex"

There are other files in the .tex file that are having the same issue. Any ideas?

share|improve this question
2  
Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – percusse Jan 27 at 22:31
1  
There are many Questions about input paths. For instance this one might be interesting for further reading tex.stackexchange.com/questions/89247/input-file-folder/… – bloodworks Jan 27 at 23:15

migrated from stackoverflow.com Jan 27 at 22:25

1 Answer

Its not important the the image file is in the same directory of the tex file. It should be in the working directory where you launch the pdflatex command.

share|improve this answer
1  
What do you mean by "working directory where you launch the 'pdflatex' command?" – AlanH Apr 6 at 21:51

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.