OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook] keep-together and keep-with-next


Oh, btw., if you're not using fop, you might first try the technique
describe in "Soft page breaks" in Bob's book:
http://www.sagehill.net/docbookxsl/PageBreaking.html 

David

> -----Original Message-----
> From: David Cramer 
> Sent: Sunday, December 02, 2007 9:50 PM
> To: Mansour; docbook@lists.oasis-open.org
> Subject: RE: [docbook] keep-together and keep-with-next
> 
> It sounds like <?dbfo keep-together="auto" ?> is only supported in
> tables: http://www.sagehill.net/docbookxsl/PageBreaking.html
> 
> You could add something like this to your customization layer:
> 
>   <xsl:template match="*[processing-instruction('mansour-fo') 
> = 'keep-together']">
> 	<fo:block keep-together.within-column="always">
> 	  <xsl:apply-imports/>
> 	</fo:block>
>   </xsl:template>
> 
> This template wraps any element containing <?mansour-fo 
> keep-together?> in a <fo:block 
> keep-together.within-column="always">. So put <?mansour-fo 
> keep-together?> as a child of your section. It should also 
> work in other places, but you could also put is in places 
> where the results would be not what you want or even result 
> in invalid fo. 
> 
> David 
> 
> > -----Original Message-----
> > From: Mansour [mailto:mansour77@yahoo.com]
> > Sent: Sunday, December 02, 2007 3:26 PM
> > To: docbook@lists.oasis-open.org
> > Subject: [docbook] keep-together and keep-with-next
> > 
> > I have a section that I need it all in one page. This 
> section consists 
> > only of a list. The last item in the list is rendered on the top of 
> > the next page. I have tried every possible combination of 
> > keep-together and keep-with-next.
> > Nothing worked.
> > 
> > <section>
> >     <title> title of the section</title>
> >     <?dbfo keep-together.within-coloumn="always"?>
> >     <para> this is the explanation of the section. Two more 
> lines to 
> > go.</para>
> >     <itemizedlist>
> >     <listitem> item1</listitem>
> >     <listitem> item2</listitem>
> >     <listitem> item3 </listitem>
> >     </itemizedlist>
> > </section>
> > 
> > 
> > I have tried  keep-with-next, keep-together.within-page. 
> Can someone 
> > help getting this to work?
> > thank you.
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: docbook-help@lists.oasis-open.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
> 
> 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]