atom feed2 messages in org.oasis-open.lists.docbookRe: [docbook] Sidebar without title
FromSent OnAttachments
Claudio TubertiniMay 15, 2012 1:14 am 
Bob StaytonMay 15, 2012 11:57 am 
Subject:Re: [docbook] Sidebar without title
From:Bob Stayton (bo@sagehill.net)
Date:May 15, 2012 11:57:00 am
List:org.oasis-open.lists.docbook

Hi Claudio,

That space is caused by the first para element in the sidebar, which generates
an fo:block that looks like this:

<fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em">para in sidebar</fo:block>

So to handle the case of para first in a sidebar, you could add a template like
this to your customization layer:

<xsl:template match="d:sidebar/*[1][self::d:para]"> <fo:block> <xsl:apply-templates/> </fo:block> </xsl:template>

This matches on the first child element of sidebar if it is a para element, and
then does not apply the 'normal.para.spacing' attribute-set to its block. If
you are using the non-namespaced stylesheets, omit the d: namespaces prefixes.

Bob Stayton Sagehill Enterprises bo@sagehill.net

----- Original Message ----- From: Claudio Tubertini To: docb@lists.oasis-open.org Sent: Tuesday, May 15, 2012 1:15 AM Subject: [docbook] Sidebar without title

I'm working on a file with sidebars that do not have title and I would like
to produce a PDF file. Someone knows how to format the sidebars without having a
blank line in the place of the title?

Regards Claudio