[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] how to get chapters to start on odd page?
On Tue, 27 May 2003, Bob Stayton wrote:
> On Fri, May 09, 2003 at 02:29:33PM -0400, Robert P. J. Day wrote:
> >
> > i'm sure this must be obvious, but i don't see an option in
> > the online list of FO parameters that will force a chapter to
> > the next odd page.
> >
> > i *have* added double-sided as an option, if that's
> > relevant.
>
> Yes it is relevant, because when that parameter is set,
> you should automatically get chapters starting on the
> next odd page. That is the default behavior of
> the fo stylesheet when double.sided is set.
>
> In fo/component.xsl, in <xsl:template match="chapter">:
>
> <fo:page-sequence id="{$id}"
> ...
> <xsl:when test="$double.sided != 0">
> <xsl:attribute name="initial-page-number">auto-odd</xsl:attribute>
> </xsl:when>
>
> In other words, if $double.sided is not zero, then
> add the attribute initial-page-number="auto-odd".
> The 'auto-odd' value should force the starting page
> for the page-sequence to the next odd page.
> Does your fo output have an initial-page-number="auto-odd"
> attribute in the fo:page-sequence elements?
>
> Do you have other customizations that might be interfering
> with this behavior?
never mind. for reasons unrelated to this, i upgraded to the
next rc version of FOP, and my chapters now start on odd-numbered
pages. that, of course, makes no sense but at this point i'm
not going to fight it. i have other problems i'll be asking
about shortly. one down, a few more to go.
rday
--
Robert P. J. Day
Eno River Technologies
Unix, Linux and Open Source training
Waterloo, Ontario
www.enoriver.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]