[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

121.0. "(KEEP\) as a figure attribute" by TOPDOC::FRANZOSA () Tue Mar 17 1987 10:29

    As I understand it, KEEP is supposed to keep a figure (or table
    or whatever) on one page.
    
    Using <FIGURE>, I've tried (KEEP) and (KEEP\) as arguments for 
    <FIGURE_ATTRIBUTES> but neither prevents document from breaking
    the figure. I'm using a caption, but that shouldn't matter. Here's
    a possibility: the caption is a long one and wraps. Is it possible
    that document doesn't know this, allocates space, but then has to
    break the page?
    
    
    
T.RTitleUserPersonal
Name
DateLines
121.1KEEP = NOFLOATCLOSET::ANKLAMTue Mar 17 1987 13:5713
    
    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?
    
    
121.2Maybe it's KEEP < NOFLOATTOPDOC::FRANZOSAWed Mar 18 1987 11:1535
    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
    
121.3neither KEEP nor NOFLOATCLOSET::ANKLAMFri Apr 10 1987 11:1312
    
    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