On 13 February 2011 09:21, Gary F. <[email protected]> wrote: > Using dblatex, I noticed that given something like: > > == Section 1 > > Text > > .Section 1 Table > [width="60%",float="left",options="header"] > |============ > | Row 1 | Data > |============ > > == Section 2 > > Text > > .Section 2 Table > [width="60%",float="left",options="header"] > |============ > | Row 1 | Data > |============ > > == Section 3 > > Text > > .Section 3 Table > [width="60%",float="left",options="header"] > |============ > | Row 1 | Data > |============ > > ... the resulting .pdf file, produced by dblatex will sometimes move > all the tables together onto a following page, leaving the sections > that discuss them orphaned on the previous page. 'fop' didn't seem to > do this, but as I mentioned before, dblatex generally produces the > output (colored source highlighting) that better suits my purposes. > > What I was forced to do is to forward reference the indicated talbe > using a label, just in the event that the table(s) get(s) moved to the > following page. > > Can you recommend a method for avoiding this grouping of tables onto > pages that are not within the section where the table was defined? >
Hi Gary, I investigated this a while back. (Note "float" is anything that shouldn't be broken over a page, eg tables, figures) FYI the placement algorithm IIUC is: 1. If the float fits in what is left in the page *when the float is created* then it goes where it was created. 2. if it won't fit it moves to the next page and text following the float is moved forward until the page is full 3. if moving text forward creates extra floats they queue up after the previous one, if enough queue up, the next page is all floats, so floats can't get out of order 4. floats cannot move before their definition so the author can always ensure the float is talked about before it occurs The problem with allowing you the manual control that you want is how do you ensure the float fits when you don't know where on the page it occurs? If you could force the float to the next page and the text followed it you can have big white spaces on the rest of the page. Neither is a good solution. Cheers Lex > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
