TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.

share|improve this question

migrated from math.stackexchange.com Jan 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

Your example is working for me. Make sure:

  • 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);
  • that your image is really a jpeg file.
share|improve this answer

Your Answer


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