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.

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.

share|improve this question
1  
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
3  
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
1  
(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
add comment

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.

1 Answer

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
add comment

Your Answer

 
discard

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