[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Suppressing blank pages and double-sided printing.
Hi,
With initial-page-number="auto" and force-page-count="no-force", you are
close.
But the effect you are seeing is coming from the page-sequence-master,
which selects the "odd" page-master for the page-position="first" selector.
For example:
<fo:page-sequence-master master-name="body">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="blank"
blank-or-not-blank="blank"/>
<!--
<fo:conditional-page-master-reference master-reference="body-first"
page-position="first"/>
-->
<fo:conditional-page-master-reference master-reference="body-odd"
odd-or-even="odd"/>
<fo:conditional-page-master-reference
odd-or-even="even">
<xsl:attribute name="master-reference">
<xsl:choose>
<xsl:when test="$double.sided != 0">body-even</xsl:when>
<xsl:otherwise>body-odd</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</fo:conditional-page-master-reference>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
In this example, I commented out the problem. With that line commented out,
an even-numbered first page will get the "even" (left) page-master.
If you copy this big template to your customization layer and comment out
those references to page-position="first", then it will work.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Tavmjong Bah" <tavmjong@free.fr>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, July 13, 2007 5:53 AM
Subject: [docbook-apps] Suppressing blank pages and double-sided printing.
> Hi,
>
> Last December I thought I had solved the problem of unwanted pages in
> double-sided output. However, it has been pointed out to me that in
> suppressing blank pages between chapters and other book sections, the
> right/left page sequence is screwed up... i.e. there are two right-side
> pages in a row. Further more, page numbers are skipped. So I've tried
> various combinations of modifying the initial.page.count and
> force.page.count templates. Here is what I observe:
>
> -------------------------------------------
> initial.page.number: auto
>
> force.page.count:
> end-on-even: Blank pages
>
> auto: No blank pages
> Page numbers skipped
> Right/Left sequence bad
>
> no-force: No blank pages
> Page numbers correct
> Right/Left sequence bad
>
> --------------------------------------------
> initial.page.number: auto-odd
>
> force.page.count:
>
> end-on-even: Blank pages
>
> auto: Blank pages except
> no blank last page
>
> no-force: No blank pages
> Page numbers skipped
> Right/Left sequence bad
>
> --------------------------------------------
>
> I tried this with docbook-xsl-snapshot from 2007-02-09 and fop SVN.
> (I haven't used more recent docbook-xsl-snapshots as at some point
> procedures got messed up.) Any ideas on what I can do to suppress blank
> pages and have the right/left sequence correct? Is there some
> combination I am missing?
>
> Thanks,
>
> Tav
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]