This is a bit more complicated than it should be. Each of the TOC and List of Tables
etc. is in its own fo:page-sequence. When double-sided, each page-sequence is
configured to end on an even page, filling in with a blank page if necessary. And by
default the page-sequence that follows it starts on an odd page, using the simple page
master with master-name that includes "first", which uses margins like the "odd" page
master.
So to eliminate the blank page, the TOC page-sequence has to be altered to not
end-on-even, and the page-sequence that follows it has to be altered to start on the
first available page, not an odd page. The tricky part is knowing what page-sequence
follows the TOC, which depends on your content (could be preface, part, chapter,
etc.).
Fortunately, you don't have to redefine the page masters to do this. It requires
customizing the behavior of two templates whose purpose is to insert these page
properties on each page-sequence.
The 'force.page.count' template from fo/pagesetup.xsl sets the 'end-on-even' property
that forces the blank page, so that would need to be changed to 'no-force' when the
$master-reference template param starts with 'lot', using an xsl:choose statement.
The 'initial.page.number' template also in fo/pagesetup.xsl sets the 'auto-odd'
property that starts the following page-sequence on an odd page. That would need to
be changed to 'auto' for that page-sequence. Selecting just that page-sequence is the
tricky part. But if you don't do this step, then you can end up with an odd-numbered
last TOC page followed by an odd-numbered title page, which throws off the odd-even
page sequencing.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Frank Arensmeier" <[email protected]>
To: "Docbook Apps Help list" <[email protected]>
Sent: Monday, February 13, 2012 3:52 AM
Subject: [docbook-apps] Controlling page break after toc
Hi there.
I am generating double sided PDF files with the latest docbook xsl stylesheets.
Everything is working just fine besides one thing. I'd like to get rid of the blank
page that is inserted after the table of contents. How can this be accomplished? I can
not find anything "suspicious" in the fo/titlepage.templates.xml file that could be
tweaked.
Thank you,
/frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]