This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] docbook.xsl/fo: best way to bring all titles closerto their context


Sebastian Fey wrote:
hi,

in my printed documents component titles are as close to their context (the following) as to the preceding elements.
figure and table titles alike.

whats the best and easiest way to change this?

thx,

Sebastian

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Hi,

you want to change the space before and/or the space after table/figure/whatever titles, right?

They get their attributes from the formal.title.properties attribute set (which uses the attribute-set normal.para-spacing).

Here's a part of my customisation layer:

<xsl:attribute-set name="formal.title.properties"
                   use-attribute-sets="normal.para.spacing">
  <xsl:attribute name="font-family">ScalaSans-Bold</xsl:attribute>
  <xsl:attribute name="font-size">9pt</xsl:attribute>
  <xsl:attribute name="hyphenate">false</xsl:attribute>
  <xsl:attribute name="space-before.minimum">0pt</xsl:attribute>
  <xsl:attribute name="space-before.optimum">0pt</xsl:attribute>
  <xsl:attribute name="space-before.maximum">0pt</xsl:attribute>
  <xsl:attribute name="space-after.minimum">8.5pt</xsl:attribute>
  <xsl:attribute name="space-after.optimum">9pt</xsl:attribute>
  <xsl:attribute name="space-after.maximum">9.5pt</xsl:attribute>
</xsl:attribute-set>

I hope I got your problem right :) ... maybe some of the gurus here on the list have a more elegant solution but this works for me ...

Cheers
Thomas Gier

Technical Writer
Aachen / Germany





To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]