Graphics, Figures & Tablesimage produces empty box

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
adh2
Posts: 6
Joined: Wed May 05, 2010 4:30 pm

image produces empty box

Post by adh2 »

Hi,
I've noticed other people have had similar problems, but although I've spent quite some time searching, I haven't found anything that could actually help me. So now I resort to you guys!

I'm using the graphicx-package and latex=>pdf with TeXnicCenter in windows xp. This is what my document looks like:

Code: Select all

\documentclass[a4paper,12pt,draft,oneside]{report}
\usepackage[swedish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=4in]{diagram.jpg}
\end{document}
When I build a pdf there are no error messages, but instead of the image there's only a frame with the text "diagram.jpg" inside; no actual picture. I've tried other file formats on the picture, but same result every time.
Any ideas?
I guess a good start might be to check the .log file, but I haven't understood where to find that file?:S It's not in the same folder as the .tex file and image?

Best regards,
Alfred

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

image produces empty box

Post by josephwright »

The draft option is inherited by graphicx. Use

Code: Select all

\usepackage[final]{graphicx}
Joseph Wright
adh2
Posts: 6
Joined: Wed May 05, 2010 4:30 pm

Re: image produces empty box

Post by adh2 »

I see! Thank you very much!
Alfred
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

image produces empty box

Post by gmedina »

Hi,

just a little comment on this:
adh2 wrote:Hi,
...check the .log file, but I haven't understood where to find that file?:S It's not in the same folder as the .tex file and image?...
Yes, the .log file lives in the same directory that contains the .tex file.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
adh2
Posts: 6
Joined: Wed May 05, 2010 4:30 pm

Re: image produces empty box

Post by adh2 »

Hi,
I found the log file. But it appears to be an ordinary .txt file without any .log ending, as far as I can tell. But judging from the contents it's the log file for sure:)
Thank you for you reply!
Post Reply