LaTeX forum ⇒ Graphics, Figures & TablesPlacement? Picture leaves a blank area

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

Placement? Picture leaves a blank area

Postby DavidM » Sat Jul 18, 2009 10:12 pm

Hi everyone,

I am using the following to insert pictures in my file:
  1. \begin{figure}
  2. \begin{center}
  3. \includegraphics[width=0.50\textwidth, angle = 0]{Name.jpg}
  4. \caption{Text.}\label{Figure x}
  5. \end{center}
  6. \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

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

Postby localghost » Sat Jul 18, 2009 10:52 pm

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

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

Postby DavidM » Sun Jul 19, 2009 2:21 pm

Wow, that worked really good! Thanks so much!

Regards,

David


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 7 guests