[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] why is a <bridgehead> forcing a page break?
On Tue, May 13, 2003 at 01:04:10PM -0400, Robert P. J. Day wrote: > > for better or worse, i'm starting each set of exercises > with a > > <bridgehead>Exercises</bridgehead> > > since i want: > > 1) for now, the exercises to start at the current location on > the printed page > > 2) i don't want any Exercises headers to appear in the ToC > > and yet, the "Exercises" header is being forced to the next > printed page in the PDF output. > > i *did* add page breaks before section levels 1, 2 and 3 > but from what i read, this should *not* affect pagination > for <bridgehead>s. > > suggestions? > > rday > > p.s. i did add the "renderas" attribute to <bridgehead>, and > i set it to "other", but this made no difference. it's still > being forced to the next page. bridgehead output is handled using the same 'section.heading' named template in fo/sections.xsl as is used in real section titles. That is why you are getting the same page breaking behavior as your section headings. It is using the same attribute-sets. bridgeheads adjust their formatting to be one level down from their container section element so they appear to fit in the container properly. If you want that behavior, then you will have to customize the full match="bridgehead" template in fo/sections.xsl. But if you want each Exercises heading to be a consistent size, regardless of its location in the section hierarchy, then it is easier. You can set a role attribute on those bridgeheads <bridgehead role="exercises">Exercises</bridgehead> and create your own template to format it: <xsl:template match="bridgehead[@role = 'exercises']"> <fo:block id="{$id}" xsl:use-attribute-sets="exercises.title.properties"> <xsl:apply-templates/> </fo:block> </xsl:template> Also create an attribute-set with name 'exercises.title.properties' to hold all your formatting property attributes. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]