Vincent Hennebert-3 wrote:
>
> Hi Nicol,
>
>> I'm finding some really strange behavior dealing with
>> page-sequence-masters,
>> page-sequences, and the margins of the region body in FOP 0.92beta.
>>
>> If you have a page-sequence master that has an initial page that is
>> unique,
>> then has a repeated page choice (even and odd pages), then certain things
>> start to happen. I'm not even sure I can fully explain what all the
>> wierdness is.
>>
>> So, the situation looks something like this in FO:
>>
>> <fo:page-sequence-master master-name="chapter">
>> <fo:single-page-master-reference
>> master-reference="chapter-start-pg"/>
>> <fo:repeatable-page-master-alternatives>
>> <fo:conditional-page-master-reference
>> blank-or-not-blank="blank"
>> master-reference="blank-pg"/>
>> <fo:conditional-page-master-reference odd-or-even="even"
>> master-reference="chapter-lhpg"/>
>> <fo:conditional-page-master-reference odd-or-even="odd"
>> master-reference="chapter-rhpg"/>
>> </fo:repeatable-page-master-alternatives>
>> </fo:page-sequence-master>
>>
>>
>> First, you can't control margin-right on one of the pages after the first
>> unique one (in this case, none of the pagest except "chapter-start-pg").
>> You
>> can control margin-left, but that just causes the region body to shift to
>> the right, sliding content off the right side of the page.
>>
>> However, if you change the margin-right on the unique first page
>> (chapter-start-pg), then it works... excpet that it changes it for all of
>> the pages in that page sequence. If you change margin-left on the unique
>> first page, then margin-RIGHT gets applied to the subsequent pages.
>
> That's a known issue: in a given page sequence, the ipd (width) of the
> first page is used for all of the other pages, whatever you specify for
> them. So if on subsequent pages the margin settings are different, only
> the left margin will be taken into account, and its value + the forced
> value of the content width will constrain the value of the right margin.
>
> That is because Fop uses the Knuth breaking algorithm to optimize the
> page breaks over a whole page sequence, and is currently unable to deal
> with differing page widths. There is ongoing work to fix that, but as
> the changes are quite important no result should be expected before some
> time. The only workaround is to ensure that you specify identical widths
> for all the pages of a page sequence.
>
Yeah, didn't think about that. That explains everything.
Vincent Hennebert-3 wrote:
>
>> Also, the layout itself seems a bit peculiar. The left-hand edge of the
>> heading (in a region-begin) on the subsequent pages is lined up with the
>> text, but it isn't aligned with the right side of the text. For some
>> reason,
>> the region-begin seems to hang over the edge of the region body. Which is
>> how I found the margin-right wierdness; I was trying to adjust the
>> margin-right so that they would match up. Obviously, it didn't work.
>
> Not so sure here, but I guess that for region-before the actual page
> width is taken into account, unlike for region-body. Specifying
> identical widths should solve the problem.
>
The width of the region-before is not directly specified; it is inferred
from the page region dimensions. And I'm not (knowingly) giving the
region-body a right margin.
--
View this message in context:
http://www.nabble.com/Bug-with-region-body-margins-and-page-seqeunces-tf2414895.html#a6741910
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]