Float placement in LaTeX is a black art.

The default float placement allows LaTeX to put figures in the places it
deems best considering the various page-breaking requirements. This is
not that unusual in books and articles: A figure might go at the top of
the page on which its referenced, etc. The "here definitely" option
forces LaTeX to put the figure where it occurs in the text. This can
cause problems with page breaks: If there's not enough room for the
figure on the current page, it will get bumped to the next page, and
you'll be left with a lot of white space. It seems likely that something
along these lines is happening here. If you have something like:

Figure 1.1
GRAPHIC IMAGE
Some text.
Figure 1.2
GRAPHIC IMAGE
More text.

then you'll get ugly pages if Some Text only takes us two thirds of the
way down the page but the second graphic is too big to fit. What you're
seeing with changing margins probably has to do with the same thing.

One solution may be to use the "here definitely" option only on certain
figures, if the placement seems too far from what you'd like. You can
add this option (just an "h", I'd think) in the "extra options" pane of
the graphics dialog.

Note what this means: If you want always to have the figure with the
paragraph, you're going to have to do a lot of tweaking with its
placement to avoid bad page breaks. That's a sign you may be trying to
control layout too much.

Richard

Dave Jarvis wrote:
> Hi,
>
> I'm having a devil of a time making LyX distribute extra vertical
> whitespace it is adding when it encounters a graphic in a 'proper'
> style. Consider the following.
>
> Document Class: book
> Page Layout (Custom): Custom (11.25" x 8.75")
> Page Margins (Custom): 1.25" x 1.25" x 1.25" x 1.25"
> Float Placement: Here definitely
>
> Here is what I get:
>
> ------------------------------------
> Figure 1.1 Graphic
> ------------------------------------
> GRAPHIC IMAGE GOES HERE
> ------------------------------------
>
>
>
>
>     Text starts here.
> [END of PAGE]
>
> Here is what I am trying to get:
>
> ------------------------------------
> Figure 1.1 Graphic
> ------------------------------------
> GRAPHIC IMAGE GOES HERE
> ------------------------------------
>     Text starts here.
>
>
>
>
> [END of PAGE]
>
> If I change the 'Float Placement:' to default, then everything works
> as desired. However, it means that the Figures are no longer with the
> appropriate paragraph, which makes for a confusing document.
>
> Also, if I change the margin and page layout settings to use the
> defaults, then LyX performs as desired. The downside here is that the
> PDF is then generated at the incorrect size, which renders it useless
> for printing. Also quite undesirable.
>
> Any ideas?
>
> Many thanks!
> Dave


-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to