Coming from a LaTeX background, I'm used to the concept of the optional (weighted) page-break.
I can't see to find an equivalent in the Prince/CSS specs. Maybe someone can enlighten me or tell me its not possible.
There are the following:
page-break-before: auto | always | avoid | left | right
where 'auto' seems a bit different it TeX, it doesn't really change anything: given my understanding that its the default so specifying auto doesn't make any difference, or does it?
In LaTeX you have:
/pagebreak or /pagebreak[p] with p=0..4 (priority)
This allows you to weight where you would prefer a pagebreak, but it does not force one. Its very handy for hinting to the layout engine where you would prefer page-breaks, if they are needed.
Its much simpler to use this, than to add "avoid" around a whole lot of small display blocks that you would prefer to stay together.
So my best case would be if I could do something like:
<div style="softbreak:2"></div>
but even
<div style="softbreak"></div>
would be ok.
I can't see to find an equivalent in the Prince/CSS specs. Maybe someone can enlighten me or tell me its not possible.
There are the following:
page-break-before: auto | always | avoid | left | right
where 'auto' seems a bit different it TeX, it doesn't really change anything: given my understanding that its the default so specifying auto doesn't make any difference, or does it?
In LaTeX you have:
/pagebreak or /pagebreak[p] with p=0..4 (priority)
This allows you to weight where you would prefer a pagebreak, but it does not force one. Its very handy for hinting to the layout engine where you would prefer page-breaks, if they are needed.
Its much simpler to use this, than to add "avoid" around a whole lot of small display blocks that you would prefer to stay together.
So my best case would be if I could do something like:
<div style="softbreak:2"></div>
but even
<div style="softbreak"></div>
would be ok.