Graphics, Figures & TablesPlacement? Picture leaves a blank area

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

Placement? Picture leaves a blank area

Post by DavidM »

Hi everyone,

I am using the following to insert pictures in my file:

Code: Select all

\begin{figure}
  \begin{center}
    \includegraphics[width=0.50\textwidth, angle = 0]{Name.jpg}
    \caption{Text.}\label{Figure x}
  \end{center}
\end{figure}
The file is 22 pages, and most of the 12 pictures are working well, but two of them are placed at about 1/4th-1/2 of the page, leaving the space above it blank. This looks really strange, and I am wondering what the cause might be? Some notes:

- Most pictures in this file are square graphs, the pictures that cause a problem are rectangular, and much more wide than high
- Every picture in the file gives this error:
"cannot determine size of graphic {no bounding box}"
I just press enter, and for most of the pictures it works fine, but perhaps this has something to do with it?

Help is much appreciated! Thanks,

David

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placement? Picture leaves a blank area

Post by localghost »

DavidM wrote:[…] Every picture in the file gives this error:
"cannot determine size of graphic {no bounding box}" […]
You obviously compiled with latex. It doesn't accept the JPG format for graphics files. Compile with pdflatex instead.


Best regards
Thorsten
DavidM
Posts: 20
Joined: Wed Jul 01, 2009 9:52 pm

Re: Placement? Picture leaves a blank area

Post by DavidM »

Wow, that worked really good! Thanks so much!

Regards,

David
Post Reply