|
The documentation is a little terse on the subject of the KEEP keyword
for <figure_attributes>. It really means 'dont't float', or 'keep
this with the text that immediately precedes it'.
Figures are by default assumed to be on a single page. If you
don't specify MULTIPAGE, however, *and* the figure element (a
<code_example> for instance) is longer than a page, it may be forced
to break anyway.
Does this solve your problem?
|
| I assumed from the doc that keep=nofloat, no prob. However, a couple of
things:
- In base level 6, NOFLOAT never did keep the figure with the
text that preceded it. We had to throw in a pagebreak before
preceding text like this:
<PAGEBREAK>
<p>
. . . the screen looks like this:
<figure>(\\NOFLOAT)
<display>
- What NOFLOAT did was to put the whole display on the following
page. Sometimes KEEP does that: it breaks the page at the figure
(not at the preceding text) under MOST conditions.
However, under some conditions the figure breaks. I've tried
this with <display> and with <code_example> (supposedly, display
isn't supposed to work with layered, but it performs the same
as code_example).
As I noted earlier, the one variable that seems to affect this
situation is the caption. If it is too long for the box and
wraps so that the figure extends beyond the end of the page,
the figure breaks (when I say "figure", I'm talking screen
displays, nothing fancy). With a shorter caption there's no
problem. If I add a few lines of text before the figure (I only
tried this once), the page broke before the figure, just as
it did in the old NOFLOAT days.
Does this make any sense?
JCF
|
|
light dawns again; I think I misunderstood something here.
When I say 'KEEP keeps the text with the text immediately preceding
it" I did not mean to imply that this meant there would never
be a page break just before the figure caption. Indeed, if a figure
will not fit on the current page, and KEEP is specified, then
the figure may start on a new page, leaving its reference on the
preceding page. I doubt if there is much we can do about this.
patti
|