RE: extra page breaks inserted

2003-01-24 Thread Patrick Dean Rusk
Chris,

If you have multiple page sequences, and you restart the page numbering in
each one, you may get blank pages inserted if you don't pay attention to the
force-page-count property of page sequences.

Here's a section from Pawson that describes it:

 cut here 
The force-page-count property imposes a condition on the number of pages in
a page sequence. This number may be an absolute count, or a parity
condition. For each condition, if the condition is not satisfied, the action
taken is to add one page to the current page sequence. The values of the
property, and the proper interpretation of same, are listed below:

force-page-count

auto
The action taken depends on the existence of a succeeding page sequence, and
the value of its initial-page-number property. If there is a succeeding page
sequence, and an even initial-page-number is explicitly specified on it,
then the current page sequence is forced to have an odd number of pages. If
there is a succeeding page sequence, and an odd initial-page-number is
explicitly specified on it, then the current page sequence is forced to have
an even number of pages.

even
Force an even page-count for the page sequence.

odd
Force an odd page-count for the page sequence.

end-on-even
Force the last page to have an even page number.

end-on-odd
Force the last page to have an odd page number.

no-force
Do not force any page count.

Tip
Note that the default value is auto. This may cause action to be taken.
 cut here 

In brief, page sequences default to force-page-count=auto.  This forces a
sequence to have an even number of pages if the following sequence wants to
start on an odd page.  If it needs to insert a blank page to cause this, it
will.

To stop this, set force-page-count=no-force on your page sequences.

Just had to do this myself for the first time about an hour ago.  Timely,
huh?

Patrick Rusk

P.S. I don't know that this has necessarily changed at all since 0.20.4.
It's worked that way in the latest CVS source for at least three months, as
long as I've been using FOP.


-Original Message-
From: Chris McCann [mailto:[EMAIL PROTECTED]
Sent: Friday, January 24, 2003 2:09 PM
To: [EMAIL PROTECTED]
Subject: extra page breaks inserted

Hello all,

I'm getting weird behavior in fop 0.20.5rc that didn't happen in
0.20.4.

What I've got is multiple page-sequences in a .fo file with page
numbering being reset in between.  In .20.5rc I get extra blank pages
inserted in between page sequences.  In .20.4 it worked as I expected no
black pages.

Anybody got any ideas in what it happening?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: extra page breaks inserted

2003-01-24 Thread Chris McCann

Patrick,

Thanks for the great answer!  It make sense to me now why it works this
way.  Again thanks.

Chris

Patrick Dean Rusk([EMAIL PROTECTED])@Fri, Jan 24, 2003 at 03:49:24PM -0500:
 Chris,
 
 If you have multiple page sequences, and you restart the page numbering in
 each one, you may get blank pages inserted if you don't pay attention to the
 force-page-count property of page sequences.
 
 Here's a section from Pawson that describes it:
snip
 To stop this, set force-page-count=no-force on your page sequences.



-- 
==
There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.
- Jeremy S. Anderson
Chris McCann  
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]