You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2005/04/01 09:55:46 UTC
[Xmlgraphics-fop Wiki] Update of "TableLayout/KnuthElementsForTables" by
JeremiasMaerki
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.
The following page has been changed by JeremiasMaerki:
http://wiki.apache.org/xmlgraphics-fop/TableLayout/KnuthElementsForTables
The comment on the change is:
Corrected to use normal penalties
------------------------------------------------------------------------------
maxRemainingHeight=41
addedBoxHeight=0
penalty = 12 + 41 - 41 = 12
- effPenalty: w = 12 (space for block1) + 4 (border) + 13 (footer), w2 = 13 (header) + 4 (border)
+ effPenalty: w = 12 (space for block1) + 13 (header) + 4 (border-after-header) + 4 (border-before-footer) + 13 (footer)
box = 12 - 0 - 12 = 0
Step 2:
@@ -445, +445 @@
maxRemaningHeight = 2 + 20 + 2 = 24
addedBoxHeight = 0
penalty = 17 + 24 - 41 = 0
- effPenalty: w = 0 (calc penalty) + 4 + 13, w2 = 13 + 4 - 2 (footer at this place which is superceeded by the border to the header/footer)
+ effPenalty: w = 0 (calc penalty) + 13 + 4 - 2 (border between cell2 and cell3 at this place which is superceeded by the border to the header/footer) + 4 + 13
box = 17 - 0 - 0 = 17
Step 3:
@@ -453, +453 @@
maxRemainingHeight = 2 + 20 + 2 = 24
addedBoxHeight = 17
penalty = 22 + 24 - 41 = 5
- effPenalty: w = 5 (calc penalty) + 4 + 13, w2 = 13 + 4
+ effPenalty: w = 5 (calc penalty) + 13 + 4 + 4 + 13
box = 22 - 17 - 5 = 0
Step 4:
@@ -461, +461 @@
maxRemaningHeight = 2 + 20 + 2 = 24
addedBoxHeight = 17
penalty = 32 + 24 - 41 = 15
- effPenalty: w = 15 (calc penalty) + 4 + 13, w2 = 13 + 4
+ effPenalty: w = 15 (calc penalty) + 13 + 4 + 4 + 13
box = 32 - 17 - 15 = 0
Step 5:
@@ -472, +472 @@
box = 41 - 17 - 0 = 24
}}}
- === end result (with raw penalties) ===
+ === End result (with raw penalties) ===
{{{
box(0)
@@ -487, +487 @@
-> 41
}}}
+ === End result (effective) ===
+
+ {{{
+ box(0)
+ penalty(46) //incl. header and footer
+ box(17)
+ penalty(32) //incl. header and footer
+ box(0)
+ penalty(39) //incl. header and footer
+ box(0)
+ penalty(49) //incl. header and footer
+ box(24)
+ box(17) //header
+ box(17) //footer
+ }}}
+