List Info

Thread: page break before section heading on level 1




page break before section heading on level 1
user name
2007-01-29 07:00:47

Hello everybody,

 

Is there a way to say when a page break should be put before a section (level 1) heading?

Some times the section heading is at the end of the page with very little text and the rest of the text on the next page.

 

Thanks,

 

           ; Hinrich

Re: page break before section heading on level 1
user name
2007-01-29 07:23:32
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi Hinrich,

I added this template to my customization layer (for docbook
4.4):

    <xsl:template match="sect1">
        <xsl:choose>
            <xsl:when test="((parent::chapter) or
(parent::appendix))and
not(preceding-sibling::sect1)">
                <fo:block
break-before="page">   
                    <xsl:apply-imports />
                </fo:block>
            </xsl:when>
            <xsl:otherwise>
                <xsl:apply-imports />
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

It works for me to get the first headline of a chapter on an
extra page.
You can change or remove the choose statement.

Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 
iD8DBQFFvfVDirQ0Ts08AdMRAuegAJ4snvHE4qOD+svWH6RyIZ5bbD12+gCg
k1wk
KjoU/Yn0+t00c4UbMio5yPc=
=OxXd
-----END PGP SIGNATURE-----


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: page break before section heading on level 1
user name
2007-01-30 15:12:38
If you are not using FOP, you can try using the soft page break feature described in this reference:
 
&nbsp;
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
&nbsp;
 ;
----- Original Message -----
Sent: Monday, January 29, 2007 5:00 AM
Subject: [docbook-apps] page break before section heading on level 1

Hello everybody,

 

Is there a way to say when a page break should be put before a section (level 1) heading?

Some times the section heading is at the end of the page with very little text and the rest of the text on the next page.

 

Thanks,

 

 &nbsp; &nbsp; &nbsp; &nbsp;   ; Hinrich

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )