# Could someone help with me LaTeX ? I don't know why it isn't compiling

I am new to LaTeX and i guess computer science in general. I am trying to generate a pdf with an image. I am having a lot of problems. I use MiKTeX 2.8

Here is what I entered

\documentclass{report}
\usepackage{graphicx}
\begin{document}
\includegraphics{Reinhard}
\end{document}


I then hit the check button "pdfLaTeX" and it tells me it can't.

I am sure that the picture "Reinhard.jpg" is only my desktop.

-

## migrated from math.stackexchange.comJan 7 '12 at 1:00

This question came from our site for people studying math at any level and professionals in related fields.

Welcome to TeX.sx! Do you get any error messages? (You'll find these in the .log file.) What editor are you using? How exactly does it tell you that it can't? (Btw: 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.) –  doncherry Jan 7 '12 at 1:07
Can you elaborate on what you mean "it tells me it can't". Try moving the jpg file to the same directory as the .tex file. –  Peter Grill Jan 7 '12 at 1:09
(Jak wanted to post this as edit to the question) @Peter, it worked! I thought MikTeX would search the file. I guess that isn't true. –  lockstep Jan 7 '12 at 1:18

• that your image is named as *.jpg or *.JPG (pdfLaTeX is case sensitive);
• that your image is in the same folder as your *.tex file (or a folder in which LaTeX is searching for your file);